The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
|
|
Global Script only running when logged in as admin
Posted: 16 Jan 09 2:37 PM
|
Has anyone had an experience where a global script is only firing when logged in as admin? I'm trying to disable a menu item when the user does not belong to a certain team (or isn't admin). The script runs when I log in as admin but not when logged in as another user (I can tell because I've put a 'stop' in the script, it only stops for admin). |
|
|
| |
|
Re: Global Script only running when logged in as admin
Posted: 16 Jan 09 3:11 PM
|
Very strange. The function: Function OnFunctionVisible_ToolsMenuExcelImports(functionNumber, functionName)
sends out the message box... but the function: Function OnFunctionEnabled_ToolsMenuExcelImports(functionNumber, functionName)
does not for a regular user login. When logged in as admin, both message boxes show. |
|
|
| |
|
Re: Global Script only running when logged in as admin
Posted: 16 Jan 09 3:29 PM
|
Yes, all the plugins involved are released to everyone.
It's called from a custom menu item. Action set up as "Function" and arguement is "Tools:MenuExcelImports". Both functions from my previous post are in the same global script, the On..Visible one fires, the On..Enabled does not unless you're logged in as admin.
i'm stumped.
|
|
|
| |
|
Re: Global Script only running when logged in as admin
Posted: 16 Jan 09 5:29 PM
|
Well... I managed to get around all this creating a new global script with different function names. To be sure it wasn't a typo in the names... that function action from the menu item to the global script was corrupted somehow. |
|
|
|