From: <jam...@te...> - 2002-09-11 12:19:30
|
Its based off of the .990 sources. I was using that because it was supposed to be the latest stable one until today. ...james Jamie Cameron <jca...@we...>@lists.sourceforge.net on 09/10/2002 09:18:15 PM Please respond to web...@li... Sent by: web...@li... To: web...@li... cc: Subject: Re: Network Module Interface no add patch... That sounds like a good patch, but I had trouble applying it. Is your code based off the 0.999 version of webmin? Some similar access control options were contributed by another user since the 0.990 release .. - Jamie jam...@te... wrote: > Hi Jamie, > > It was desirable in our deployment of webmin to have the option the > interfaces submodule of the > network module, to make it so that a user could could view and edit an > interface but they > could not create a new one. At the end of this email I have attached a > patch that adds this > ability. The patch includes the following changes (high level): > > - Adds the option to add an interface (yes/no) to the acl_security.pl > file. > - Adds text for not being able to add an interface to lang/en. > - Adds text for not being able to view an interface. > - list_ifcs.cgi now uses the cannot view interface error message if > they > cannot even view the interface. > - list_ifcs.cgi does not show a link to add an interface if they user > does not have > that right. > - edit_aifcs.cgi checks to see how it was called. If it was called to > create a > an interface it determines if the user can and if not gives an > error. If it > was called to edit an interface it checks if the user can edit it. > If he/she can't > then it gives an error. > > I set it up so that even if a user could not edit an interface, if allowed > to he/she can add > one. I actually not totally sure of that decision; it seemed like the > flexible thing to do, but > it would have been a tiny bit less code changes if I would have added > append to edit, view, no. > > I did not update all the language files (only english). I could have done > the Espanol one, but > I was a little unsure of the exact grammer. > > Anyway, I hope the patch will be useful. > > Cheers...james ------------------------------------------------------- In remembrance www.osdn.com/911/ - Forwarded by the Webmin development list at web...@we... To remove yourself from this list, go to http://lists.sourceforge.net/lists/listinfo/webadmin-devel |