From: Ivo Jansch <ivo dot
Reply-To: achievo dot
To: achievo dot
Subject: Re: [achievo] Access user rights from a function.
Date: Wed, 11 Jun 2003 10:18:22 +0200
Hi,
Robert Beguiristain wrote:
regardless of their status to no avail. I am sure it is just some small
bit
of data as to what variable or function I need to address to get their
profile information,
If you do this:
$user = getUser();
you get all userdata. It's an array with several bits of information, among
which, the id of the profile.
But it's better not to check directly on the profile. It's better to create
a new privilege which you can check in each profile. Privileges can be
checked with this code:
$doesuserhavesomeprivilege = $g_securityManager->allowed("module.nodename",
"privilege");
You indicated that you don't want to use a privilege, but the reason why is
not really clear to me.
P.S.S When will the module section of the site be up. I have built some
nice
add ons that I would like to send soon.
I could say "real soon now", but I know from experience that "real soon
now" in my case is very close to "I don't know".
Greetings,
Ivo
--
Ivo Jansch <ivo dot
ibuildings.nl BV - information technology
http://www.ibuildings.nl
[ Achievo mailing list - http://www.achievo.org/ ]
[ to unsubscribe send an e-mail to achievo-unsubscribe dot