Implement Trac function-filtering based on permissions
|Reported by:||Owned by:||Jonas Borgström|
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.