changed isDenied() so that only users who are allowed to add a story can access the shortcut manager

This commit is contained in:
Robert Gaggl 2003-01-23 21:31:57 +00:00
parent bf40bb5ae9
commit 6a81fc9ee1

View file

@ -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;
} }