FR [ 1763726 ] Don't show Script for non-administrators
This commit is contained in:
parent
bcbbc8e99f
commit
52ed306eaa
|
@ -403,6 +403,8 @@ public final class AMenu extends CFrame
|
||||||
AEnv.addMenuItem("Calculator", null, null, mTools, this);
|
AEnv.addMenuItem("Calculator", null, null, mTools, this);
|
||||||
AEnv.addMenuItem("Calendar", null, null, mTools, this);
|
AEnv.addMenuItem("Calendar", null, null, mTools, this);
|
||||||
AEnv.addMenuItem("Editor", null, null, mTools, this);
|
AEnv.addMenuItem("Editor", null, null, mTools, this);
|
||||||
|
MUser user = MUser.get(Env.getCtx());
|
||||||
|
if (user.isAdministrator())
|
||||||
AEnv.addMenuItem("Script", null, null, mTools, this);
|
AEnv.addMenuItem("Script", null, null, mTools, this);
|
||||||
if (AEnv.isWorkflowProcess())
|
if (AEnv.isWorkflowProcess())
|
||||||
AEnv.addMenuItem("WorkFlow", null, null, mTools, this);
|
AEnv.addMenuItem("WorkFlow", null, null, mTools, this);
|
||||||
|
|
Loading…
Reference in New Issue