mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
Merge pull request #2311 from stenehall/master
Fixing typo in allowedSections for allowed pages under settings
This commit is contained in:
commit
383da31484
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ adminControllers = {
|
|||
// Method: GET
|
||||
'settings': function (req, res, next) {
|
||||
// TODO: Centralise list/enumeration of settings panes, so we don't run into trouble in future.
|
||||
var allowedSections = ['', 'general', 'user', 'app'],
|
||||
var allowedSections = ['', 'general', 'user', 'apps'],
|
||||
section = req.url.replace(/(^\/ghost\/settings[\/]*|\/$)/ig, '');
|
||||
|
||||
if (allowedSections.indexOf(section) < 0) {
|
||||
|
|
Loading…
Add table
Reference in a new issue