Bug 114172
Summary: | add link to /ccm/admin/ on user admin tab | ||
---|---|---|---|
Product: | [Retired] Red Hat Enterprise CMS | Reporter: | Richard Li <richardl> |
Component: | ui | Assignee: | Vadim Nasardinov <vnasardinov> |
Status: | CLOSED RAWHIDE | QA Contact: | Jon Orris <jorris> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | nightly | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2004-01-28 19:23:47 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 106481 |
Description
Richard Li
2004-01-23 16:37:22 UTC
The user admin tab is displayed conditionally based on whether or not the logged in user has the SecurityConstants.STAFF_ADMIN privilege on the current content section. This is done in generateXML in //cms/dev/src/com/arsdigita/cms/ui/UserAdminPane.java The /ccm/admin/ UI is backed by //core-platform/dev/src/com/arsdigita/ui/admin/AdminDispatcher.java. It checks if the user has the PrivilegeDescriptor.ADMIN privilege on the current site node. (The actual check is performed in the superclass //core-platform/dev/src/com/arsdigita/ui/admin/SubsiteDispatcher.java.) So, these two pages require two different kinds of permission. Thus, our options are: 1. Display the "/ccm/admin/" link on the content section's user admin tab regardless of whether the user can access /ccm/admin/ or not. 2. Display the link conditionally by checking first if the user will be able to actually view /ccm/admin/. This can be done by copying and pasting the permission check from SubsiteDispatcher into UserAdminPane. Which option should I pursue? I think the latter is more user friendly. Fixed on the trunk in change 39810. In the process of working on this, discovered and eliminated a particularly egregious instance of copy-and-paste programming. See change 39792. verified |