mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-23 22:11:09 +03:00
Fixing typo in allowedSections for allowed pages under settings
This commit is contained in:
parent
b84c8a4726
commit
be8b9cf092
@ -89,7 +89,7 @@ adminControllers = {
|
|||||||
// Method: GET
|
// Method: GET
|
||||||
'settings': function (req, res, next) {
|
'settings': function (req, res, next) {
|
||||||
// TODO: Centralise list/enumeration of settings panes, so we don't run into trouble in future.
|
// 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, '');
|
section = req.url.replace(/(^\/ghost\/settings[\/]*|\/$)/ig, '');
|
||||||
|
|
||||||
if (allowedSections.indexOf(section) < 0) {
|
if (allowedSections.indexOf(section) < 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user