Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: Detect if the current user is Administrator
Posted: Thu Aug 23, 2012 06:20 PM
Maybe You are using a LOGIN ?
I added a Permission-level to the LOGIN ( encrypted )
like : Login_1 ( 1 to _5 is the level )
from the encrypted Login I save the ? Level to a global Var.
- Administrator
- can write and delete
- can only read
- cannot load Function 1
- cannot load Function 2
Next I call the Function related to the Level like :
IF LEVEL > 4 ( low Level )
MsgAlert( "No Permission for this Action","LOCKED" )
ELSE
MY_FUNCTION()
ENDIF
Best Regards
Uwe 
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.