<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16788" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>You could add security using a WifiDog permission
if you edit the add user page...</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Wrapping the add user code with a piece of
code like this should work:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial
size=2>if(!Security::getObjectsWithPermission(Permission::P('NETWORK_PERM_ADD_USERS')))</FONT></DIV>
<DIV><FONT face=Arial size=2>{</FONT></DIV>
<DIV><FONT face=Arial size=2> // User does not have permission - display
error</FONT></DIV>
<DIV><FONT face=Arial size=2>} else {</FONT></DIV>
<DIV><FONT face=Arial size=2> // User has permission - add user code goes
here</FONT></DIV>
<DIV><FONT face=Arial size=2>}</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>You would also need to add the relevant permission
line in the Permissions.php class.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>It's a while since I did this, so you might want to
try it out on a test system first!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Hope this helps</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Richard</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=christopherrowson@gmail.com
href="mailto:christopherrowson@gmail.com">Chris Rowson</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=wifidog@listes.ilesansfil.org
href="mailto:wifidog@listes.ilesansfil.org">WiFiDog Captive Portal</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, January 15, 2009 1:33
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [isf-wifidog] Closed
commuity usage case.</DIV>
<DIV><FONT face=Arial size=2></FONT><BR></DIV>
<DIV class=gmail_quote>
<DIV>That looks fine - I guess the adduser page would have to be stuck behind
.htaccess password protection, but still, it's pretty cool :-)<BR><BR>I wonder
how hard it'd be to add the code into the current user manager?<BR><BR>Chris
</DIV></DIV></BLOCKQUOTE></BODY></HTML>