Menü-Verwaltung in externe Datei verschoben und User-Input-Save gemacht

This commit is contained in:
Sebastian Seedorf
2016-03-25 17:09:03 +01:00
parent f99271ee01
commit 61a8d484e6
5 changed files with 494 additions and 340 deletions

View File

@@ -34,6 +34,7 @@ module.exports.checkCredentials = function(name, pwd) {
};
module.exports.hasAccess = function(req, section) {
return true;
var name = module.exports.getName(req);
return (name && admins[name] && admins[name].rights && admins[name].rights[section] && admins[name].rights[module.exports.AdminRight.ADMIN]);
};