Modify ↓
Opened 15 years ago
Closed 7 years ago
#5554 closed defect (wontfix)
Access control not enforced for wiki history and exported formats
Reported by: | anonymous | Owned by: | Jonathan Turkanis |
---|---|---|---|
Priority: | normal | Component: | AccessMacro |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.11 |
Description
Hi!
I'm using the AccessMacro Plugin and as far as I can say it's nice. But I was sad as I find out, that it is still possible to read the content of a block if you look at "Last Change" for a specific site.
Attachments (0)
Change History (6)
comment:1 Changed 15 years ago by
comment:2 Changed 15 years ago by
same holds true fuer "download other formats"
elif action == 'history': return self._render_history(req, versioned_page) else: format = req.args.get('format') if format: Mimeview(self.env).send_converted(req, 'text/x-trac-wiki', versioned_page.text, format, versioned_page.name) return self._render_view(req, versioned_page)
becomes:
elif action == 'history': return self._render_history(req, versioned_page) else: format = req.args.get('format') if format: req.perm(page.resource).require('WIKI_MODIFY') Mimeview(self.env).send_converted(req, 'text/x-trac-wiki', versioned_page.text, format, versioned_page.name) return self._render_view(req, versioned_page)
I added the req.perm(page.resource).require('WIKI_MODIFY')
line :)
comment:3 Changed 12 years ago by
Summary: | Permission is ignored when in changesets → Access control not enforced for wiki history and exported formats |
---|
comment:6 Changed 7 years ago by
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
you can change that by altering trac/wiki/web_ui.py the following way
becomes:
I added the
req.perm(page.resource).require('WIKI_MODIFY')
line :)