mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-06 12:47:13 +02:00
Add menu-level ACS check
This commit is contained in:
parent
475fe596f6
commit
5bd7ecdb88
5 changed files with 80 additions and 28 deletions
|
@ -127,6 +127,13 @@ module.exports = class MenuStack {
|
|||
} else {
|
||||
self.client.log.debug( { menuName : name }, 'Goto menu module');
|
||||
|
||||
if(!this.client.acs.hasMenuModuleAccess(modInst)) {
|
||||
if(cb) {
|
||||
return cb(Errors.AccessDenied('No access to this menu'));
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
//
|
||||
// If menuFlags were supplied in menu.hjson, they should win over
|
||||
// anything supplied in code.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue