Opened 18 years ago
Closed 18 years ago
#4050 closed defect (fixed)
Admin tab visibility does not respect authentication via group membership
Reported by: | Owned by: | Matthew Good | |
---|---|---|---|
Priority: | normal | Milestone: | 0.11 |
Component: | admin/web | Version: | 0.10.2 |
Severity: | normal | Keywords: | permission groups |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
Adding the TRAC_ADMIN permission to a group of users created using the steps in http://trac.edgewall.org/wiki/TracPermissions#PermissionGroups does not cause the Admin tab to appear when a member of that group authenticates.
Attachments (1)
Change History (10)
comment:1 by , 18 years ago
Version: | 0.10 → 0.10.2 |
---|
comment:2 by , 18 years ago
Keywords: | needinfo added; admin tab user group permission removed |
---|
First be sure you've enabled the plugin. You should also be sure to restart the Trac web server after installing a new plugin.
Are you saying it works when you add the TRAC_ADMIN permission to a specific user, but not with a group? If so can you provide the output of "trac-admin your-project permission list" and the names of users you've seen this with.
by , 18 years ago
Attachment: | permissionoutput.txt added |
---|
Output of "python trac-admin c:\svn\trac.db permission list > permissionoutput.txt"
comment:3 by , 18 years ago
I ran the permission dump that mgood requested against Trac 0.9.4 after I saw the same error myself (in Trac 0.9.4) and found this ticket. See attached file called permissionoutput.txt. Note in there there is a user called jfrenia. When he was only assigned to the Administrator group, he didn't see the Admin tab. But as soon as I added the TRAC_ADMIN permission, he could see it. I'm not sure if you will want to use this test output since it came from 0.9.4 rather than 10.2, but if the problem always existed (even in earlier versions of Trac), it should be valid output.
comment:5 by , 18 years ago
That has caught a lot of people, and is documented here: TracPermissions#PermissionGroups
comment:6 by , 18 years ago
Yes, at the moment you can't have any uppercase letters in a group name. I had the impression that they simply couldn't be all uppercase, but based on the code that's not true. Is there a reason to prevent mixed-case group names? This should be fairly easy to fix.
comment:7 by , 18 years ago
Keywords: | permission groups added; needinfo removed |
---|---|
Milestone: | → 0.11 |
So what do we do about this ticket and the possibility to have mixed-case group names. As we're working on the permissions for 0.11, it's probably a good time to decide about this.
comment:8 by , 18 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
Yeah, currently mixed case names are being considered as permissions rather than groups, so I think it makes sense to switch that around.
same with my installation. some solutions?