Modify

Opened 14 years ago

Closed 11 years ago

Last modified 11 years ago

#7397 closed enhancement (fixed)

[Patch] Restrict view of developer page by adding a permission

Reported by: Steven R. Loomis Owned by: anonymous
Priority: normal Component: TracDeveloperPlugin
Severity: normal Keywords:
Cc: Steffen Hoffmann Trac Release: 0.12

Description

patch to add a DEVELOPER_VIEW permission.

The reason is, 'Developer Tools' is confusing to users, as it has nothing to do with our site. So I hide it from non-admins.

Attachments (1)

developer.patch (1.6 KB) - added by Steven R. Loomis 14 years ago.
the patch (forgot I had a login at create)

Download all attachments as: .zip

Change History (15)

Changed 14 years ago by Steven R. Loomis

Attachment: developer.patch added

the patch (forgot I had a login at create)

comment:1 Changed 14 years ago by Ryan J Ollos

Summary: Restrict view of developer page with permission[Patch] Restrict view of developer page by adding a permission

comment:2 Changed 14 years ago by Ryan J Ollos

This patch does not seem like it is all that useful since one typically (and good practice probably suggests never) develops on a production Trac instance that others have access to. Can you suggest another use case for this that I might not be thinking of?

comment:3 Changed 14 years ago by Ryan J Ollos

Owner: changed from Michael Renzmann to osimons

comment:4 Changed 14 years ago by Steven R. Loomis

I don't primarily develop on a production trac server, however, these tools are useful for problem resolution at times.

At the least, it would help one create more realistic screen shots.

comment:5 Changed 13 years ago by lkraav

i support this patch.

comment:6 Changed 13 years ago by lkraav

debugger.py:post_process_request also requires a DEVELOPER_VIEW permissions check for if 'debug' not in req.args

comment:7 Changed 13 years ago by Ryan J Ollos

Cc: Steffen Hoffmann added; anonymous removed

The patch looks good to me. If an experienced Trac developer can sign off on it, I'd be happy to push it to the repository.

comment:8 Changed 13 years ago by Steffen Hoffmann

While generally I support your position, I see Steven's point too.

Can't harm to have this in, but in addition to Leho's comment you should ensure that the output of get_permission_actions is always a list, or the list of permissions could get messed up badly. I think I saw this happen when tampering with adding permissions to another plugin on my own: I got multiple single-char permissions instead of one.

comment:9 in reply to:  8 Changed 13 years ago by Ryan J Ollos

Replying to hasienda:

Can't harm to have this in, ...

That was my thought too after reading the discussion that followed. I'm fairly sure this plugin is currently un-maintained. I think I reassigned this ticket to Osimons early on thinking he was maintaining it, but had a discussion with him later and he said that's not the case.

I'll leave this for a few days to see if anyone has comments about the maintenance status.

Last edited 11 years ago by Ryan J Ollos (previous) (diff)

comment:11 Changed 12 years ago by Ryan J Ollos

Owner: changed from osimons to Olemis Lang

comment:12 Changed 11 years ago by Olemis Lang

Owner: changed from Olemis Lang to anonymous
Status: newassigned

comment:13 Changed 11 years ago by Olemis Lang

Resolution: fixed
Status: assignedclosed

In 13524:

TracDeveloperPlugin [ fixes #7397 ] : Add DEVELOP action to control access to developer views

version => 0.3.0

comment:14 Changed 11 years ago by Ryan J Ollos

DEVELOP as an action name seems a bit inconsistent with the naming conventions of the other action names. What about TRAC_DEVELOP?

comment:15 Changed 11 years ago by Olemis Lang

In 13525:

TracDeveloperPlugin [ refs #7397 ] : Permission action DEVELOP => TRAC_DEVELOP

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain anonymous.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.