Added generic permission for Skin.main_action()
This commit is contained in:
parent
b5821d97d1
commit
d632daea69
1 changed files with 5 additions and 0 deletions
|
|
@ -65,6 +65,11 @@ Skin.prototype.constructor = function(prototype, name) {
|
|||
}
|
||||
|
||||
Skin.prototype.getPermission = function(action) {
|
||||
switch (action) {
|
||||
case ".":
|
||||
case "main":
|
||||
return true;
|
||||
}
|
||||
return res.handlers.skins.getPermission("main");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue