mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 22:43:30 +03:00
b2f1d0559b
refs #8093
✨ Add activate theme permission
- add permission to activate themes
- update tests
- also: update tests for invites
TODO: change how the active theme setting is updated to reduce extra permissions
✨ Move theme validation to gscan
- add a new gscan validation method and use it for upload
- update activate endpoint to do validation also using gscan
- change to using SettingsModel instead of API so that we don't call validation or permissions on the settings API
- remove validation from the settings model
- remove the old validation function
- add new invalid theme message to translations & remove a bunch of theme validation related unused keys
📖 Planned changes
🚨 Tests for theme activation API endpoint
🐛 Don't allow deleting the active theme
🚫 Prevent activeTheme being set via settings API
- We want to control how this happens in future.
- We still want to store the information in settings, via the model.
- We just don't want to be able to change this info via the settings edit endpoint
🐛 ✨ Fix warnings for uploads & add for activations
- warnings for uploads were broken in
|
||
---|---|---|
.. | ||
app.js | ||
authentication.js | ||
clients.js | ||
configuration.js | ||
db.js | ||
index.js | ||
invites.js | ||
mail.js | ||
notifications.js | ||
posts.js | ||
roles.js | ||
schedules.js | ||
settings.js | ||
slack.js | ||
slugs.js | ||
subscribers.js | ||
tags.js | ||
themes.js | ||
upload.js | ||
users.js | ||
utils.js |