Opened 4 years ago

Closed 22 months ago

Last modified 22 months ago

#7291 closed defect (wontfix)

Admin panel should be visible just to WIKI_ADMIN users

Reported by: mitar Owned by: coderanger
Priority: normal Component: WikiRenamePlugin
Severity: normal Keywords:
Cc: mmitar@… Trac Release: 0.11


Admin panel should be visible just to WIKI_ADMIN users as otherwise users without other privileges have just this admin panel available. But admin panel is used also while renaming the page so it is hard to get rid of it. Because of this I made a small hack for which is patch here:

---	2010-06-24 16:54:54.000000000 +0200
+++	2010-06-24 17:04:33.000000000 +0200
@@ -24,7 +24,7 @@
     # IAdminPanelProvider methods
     def get_admin_panels(self, req):
         perm = req.perm('wiki')
-        if 'WIKI_RENAME' in perm or 'WIKI_ADMIN' in perm:
+        if ('WIKI_RENAME' in perm and 'redirect' in req.args) or 'WIKI_ADMIN' in perm:
             yield ('general', 'General', 'wikirename', 'Wiki Rename')
     def render_admin_panel(self, req, cat, page, path_info):

Attachments (0)

Change History (2)

comment:1 Changed 22 months ago by rjollos

  • Resolution set to wontfix
  • Status changed from new to closed

The plugin is deprecated since there is now support in the Trac core.

comment:2 Changed 22 months ago by rjollos

If you'd like to apply patches I can provide you commit access.

Add Comment

Modify Ticket

as closed .
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.