Re: [psa-users] Feature Request?
Brought to you by:
koivi
From: Albert L. <al...@pl...> - 2003-07-01 15:21:27
|
Hi Peter, Thanks for your question and apologies for taking so long to respond. Been incredibly busy over here. Yes, of course that is terribly simple. The $_SESSION variables in PSA are very strong and flexible. You can access the user's profile with: $_SESSION["psag"] // PSA User Group The user's id with: $_SESSION["psau"] // PSA User Etc. Simply do what you've described with these vars: If($_SESSION["psag"]>"9") { // show them this... } else { // do this } Does that answer your question? Albert On 6/28/03 5:49 PM, "Peter Hiltz" <pe...@pe...> wrote: > My homegrown system on an internal site isn't that good, but one thing it does > (which doesn't seem quite as easy in phpsecurityadm) is a simple test of: > > Does the current user have X profile? > > This allows me to show sections of pages, depending on the profile of the > user. E.g. > > if(current_user->profile == 99) show_module1(); > else show_module2(); > > Actually, since I have a numerical security scale, it tends to be more: > > if(current_user->securityclearance > 9) show_module1(); > else show_module2(); > > Is there an easy way to do this with phpsecurityadmin that I am just missing? > > > > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are available now. > Download today and enter to win an XBOX or Visual Studio .NET. > http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 > _______________________________________________ > phpsecurityadm-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/phpsecurityadm-users > |