How to get the user or his rights?
bobs at twft.com
Fri Mar 23 13:00:43 EDT 2012
Okay so ID -G in OS X returns a space delimited list of groups the user belongs to. If 80 is in that list, then he is an admin. You can use the form ID -p and the results will be human readable, but you can't just look for admin because other groups may contain the string admin, like _lpadmin for example.
I am not going to dig into how to do this on Windows.
On Mar 23, 2012, at 12:41 AM, Tiemo Hollmann TB wrote:
> I have some configuration in my program which I would like to show only to
> the admin and not to a standard user.
> Is there a way to read the logged in user from the system or his permission
> level (win & mac)? I didn't find anything in the docs. Or is there another
> approach to differentiate between users?
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the Use-livecode