changed isDenied() so that only users who are allowed to add a story can access the shortcut manager
This commit is contained in:
parent
bf40bb5ae9
commit
6a81fc9ee1
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function isDenied(usr,level) {
|
function isDenied(usr,level) {
|
||||||
if (!this._parent.usercontrib && !level)
|
if (!this._parent.usercontrib && (level & MAY_ADD_STORY) == 0)
|
||||||
return "shortcutEditDenied";
|
return "shortcutEditDenied";
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue