Edgewall Software
Modify

Opened 21 years ago

Closed 21 years ago

Last modified 12 years ago

#406 closed defect (worksforme)

Implement Trac function-filtering based on permissions

Reported by: jamesm@… Owned by: Jonas Borgström
Priority: normal Milestone:
Component: general Version: devel
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal 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 (0)

Change History (7)

comment:1 by Jonas Borgström, 21 years ago

Milestone: 0.7

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

comment:2 by Jonas Borgström, 21 years ago

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 by Jonas Borgström, 21 years ago

Milestone: 0.70.7.1

Moving this to 0.7.1.

comment:4 by Christopher Lenz, 21 years ago

Works for me too using current trunk.

comment:5 by jamesm@…, 21 years ago

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 by jamesm@…, 21 years ago

Resolution: worksforme
Status: newclosed

Yup. It works in 0.7.

comment:7 by Christian Boos, 12 years ago

Milestone: 0.7.1

(clearing report:35)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.