FR [ 1763726 ] Don't show Script for non-administrators

This commit is contained in:
Carlos Ruiz 2007-07-30 15:48:42 +00:00
parent bcbbc8e99f
commit 52ed306eaa
1 changed files with 3 additions and 1 deletions

View File

@ -403,7 +403,9 @@ public final class AMenu extends CFrame
AEnv.addMenuItem("Calculator", null, null, mTools, this);
AEnv.addMenuItem("Calendar", null, null, mTools, this);
AEnv.addMenuItem("Editor", null, null, mTools, this);
AEnv.addMenuItem("Script", null, null, mTools, this);
MUser user = MUser.get(Env.getCtx());
if (user.isAdministrator())
AEnv.addMenuItem("Script", null, null, mTools, this);
if (AEnv.isWorkflowProcess())
AEnv.addMenuItem("WorkFlow", null, null, mTools, this);
if (MRole.getDefault().isShowPreference())