Ticket #406 (closed defect: worksforme)
Opened 8 years ago
Last modified 8 years ago
Implement Trac function-filtering based on permissions
| Reported by: | jamesm@… | Owned by: | jonas |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.7.1 |
| Component: | general | Version: | devel |
| Severity: | normal | Keywords: | |
| Cc: | |||
| Release Notes: | |||
| API Changes: | |||
Description
I would like Trac to hide components that are outside the permissions of the current user.
For example, if I remove WIKI_MODIFY from the anonymous user, the "Edit Page" buttons do not appear. This is perfect. However, if I remove BROWSER_VIEW from anonymous, "Browse Source" still appears in the toolbar. As user anonymous when I click on "Browse Source", Trac serves me a "Permission Denied" page with a nice admin explanation of why the problem occurred but its a message that is unneccessary for the typical user. It would be better, in my opinion, to prevent display of functions outside the current user's permissions.
Attachments
Change History
comment:1 Changed 8 years ago by jonas
- Milestone set to 0.7
comment:2 Changed 8 years ago by jonas
Which version of Trac are you using, I just tested latest trunk version and it seems to work?
On the other hand I know it is broken in Trac 0.6.1.
comment:4 Changed 8 years ago by cmlenz
Works for me too using current trunk.
comment:5 Changed 8 years ago by jamesm@…
Hehehe. I am using 0.6.1. I'll be upgrading to 0.7 now that you have released. Hopefully this will work for me in 0.7.
comment:6 Changed 8 years ago by jamesm@…
- Resolution set to worksforme
- Status changed from new to closed
Yup. It works in 0.7.



I fixed this a while ago, seems like header.cs is broken again.