[isf-wifidog] Closed commuity usage case.

Chris Rowson christopherrowson at gmail.com
Jeu 15 Jan 09:56:04 EST 2009


>
>  You could add security using a WifiDog permission if you edit the add
> user page...
>
> Wrapping the add user code with a piece of code like this should work:
>
>
>
> if(!Security::getObjectsWithPermission(Permission::P('NETWORK_PERM_ADD_USERS')))
> {
>   // User does not have permission - display error
> } else {
>   // User has permission - add user code goes here
> }
>
>
> You would also need to add the relevant permission line in the
> Permissions.php class.
>
>
> It's a while since I did this, so you might want to try it out on a test
> system first!
>
>
> Hope this helps
>
> Richard
>

Thanks Richard,

If/when I get around to upgrading, I'll document the changes (as long as I
manage to get them working!)

Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listes.ilesansfil.org/pipermail/wifidog/attachments/20090115/485fcc23/attachment.htm 


Plus d'informations sur la liste de diffusion WiFiDog