Hi Bob,
thanks for your hints.
For windows standalones you can set the UAC Execution Level to "require
Admin". So LC knows, who's logged in. I wonder, if we can retrieve this
information from LC?
Tiemo

> -----Ursprüngliche Nachricht-----
> Von: [email protected] [mailto:use-livecode-
> [email protected]] Im Auftrag von Bob Sneidar
> Gesendet: Freitag, 23. März 2012 18:01
> An: How to use LiveCode
> Betreff: Re: How to get the user or his rights?
> 
> 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.
> 
> Bob
> 
> 
> On Mar 23, 2012, at 12:41 AM, Tiemo Hollmann TB wrote:
> 
> > Hello,
> >
> > 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?
> >
> > Thanks
> >
> > Tiemo
> >
> >
> >
> >
> >
> > _______________________________________________
> > use-livecode mailing list
> > [email protected]
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> _______________________________________________
> use-livecode mailing list
> [email protected]
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to