Question
I have an implementation that has several webs and dozens of users. I have several access control groups set up to make sure the data is kept within the required group.
From time to time, I get requests from users to add them to the required group for permission to a particular page. At this point, I don't remember what group I used on what page and would like to access the information easily.
I'm also a glutton for SEARCH punishment and thought I'd see if I could find a way to enter a topic name and have it return all the permissions ALLOW or DENY for that topic.
As I got further into this task, I decided to make it a bit more generic. At this point I have a form requesting the Web name, the Topic name and a selection box for returning ALLOW, DENY, BOTH, or ALL.
My uses for this were pretty minimal, but I thought I'd post it in case someone else needed something like this.
*Topic:* <noautolink>%URLPARAM{"searchWeb" default="%WEB%"}% >
%URLPARAM{"searchTopic" default="%TOPIC%"}%</noautolink><br />
*Permissions:*
%SEARCH{" \* [#]{0,1}Set %URLPARAM{"searchPermissions" default=""}%" regex="on"
web="%URLPARAM{"searchWeb" default="%WEB%"}%" topic="%URLPARAM{"searchTopic"
default="%TOPIC%"}%" nonoise="on" multiple="on"
format=" * $pattern(.* \* [#]{0,1}Set (.*? =[^\n]*).*)"}%
---
_Enter a Web.Topic name below to display the permissions set in it._ <br />
<form action="%SCRIPTURLPATH{view}%/%WEB%/%TOPIC%">
<input type="text" name="searchWeb" size="10" value="%URLPARAM{"searchWeb" default="Web"}%" />*.*
<input type="text" name="searchTopic" size="40" value="%URLPARAM{"searchTopic" default="Topic"}%" />
<select name="searchPermissions" size="1">
<option value="ALLOW">Allow</option>
<option value="DENY">Deny</option>
<option value="(ALLOW|DENY)">Allow & Deny</option>
<option value="" selected>All</option>
</select>
<input type="submit" class="twikiSubmit" value="Search Permissions" />
</form>
Environment
--
MatthewCardozo - 25 Jun 2007
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
--
MatthewCardozo - 25 Jun 2007