From: Mark W. <ma...@rw...> - 2011-08-22 14:55:16
|
<html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body bgcolor="#FFFFFF" text="#000000"> Hi Peter, <br> <br> The admin, manager, basic clearances can now be used through the same method as check aclClients etc.<br> <br> The command:<br> <blockquote>$this->requestPageAuth('aclClients')) <br> </blockquote> should only really be used once at the top of the page, as it is the governing factor that sets whether the page should be displayed or not.<br> The new options are "Administrator", "Manager", "Basic"<br> <br> If you need to check auth anywhere else i.e. in the menu you should use the command below:<br> <br> if(Auth::ACCESS_GRANTED == Auth::requestAuth('Administrator')){<br> echo 'yes';<br> }<br> <br> Please note the quotation marks around Administrator.<br> <br> Cheers!<br> Mark<br> <br> <br> <pre class="moz-signature" cols="72">_____________________________________________ Mob: 07725 695178 Email: <a class="moz-txt-link-abbreviated" href="mailto:ma...@rw...">ma...@rw...</a></pre> <br> On 21/08/2011 02:42, Peter Lazarus wrote: <blockquote cite="mid:4E5...@gm..." type="cite">Mark, <br> I should specifically ask about admin authorisation. There are the simple existing levels of basic, mgr, admin, none which are tested in say if(Auth::ACCESS_GRANTED != $this->requestPageAuth('aclClients'))return; <br> <br> The old code has this: if (!$authenticationManager->isLoggedIn() || !$authenticationManager->hasClearance(CLEARANCE_ADMINISTRATOR)) <br> <br> have you changed this code to OOO yet? It seems not. <br> <br> Otherwise I have already worked out how to add additional page authentications. <br> Peter <br> <br> </blockquote> </body> </html> |