Edgewall Software
Modify

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

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

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:3 Changed 8 years ago by jonas

  • Milestone changed from 0.7 to 0.7.1

Moving this to 0.7.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.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
to The owner will be changed from jonas. Next status will be 'closed'
Author


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

 
Note: See TracTickets for help on using tickets.