Issue Details (XML | Word | Printable)

Key: MDL-13228
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Duplicate
Priority: Major Major
Assignee: Tim Hunt
Reporter: John Isner
Votes: 11
Watchers: 10
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

Improve the transparency of Roles and Capabilities by adding a View permissions tab

Created: 29/Jan/08 09:59 PM   Updated: 27/Oct/08 05:39 PM
Return to search
Component/s: Roles
Affects Version/s: 1.9
Fix Version/s: None

File Attachments: 1. File get_permission_table (5 kB)
2. File roletab.php (3 kB)

Image Attachments:

1. Table of permission data used to calculate a permission.jpg
(22 kB)
Issue Links:
Duplicate
 
Relates
 

Participants: Gary Anderson, John Isner, Martin Dougiamas, Petr Skoda, Ray Lawrence, Robert Brenstein and Tim Hunt
Security Level: None
Resolved date: 27/Oct/08
Affected Branches: MOODLE_19_STABLE


 Description  « Hide
The Roles and Capabilities system needs greater transparency. It's too much like a black box. The set of permissions that a user has in a given context is the result of a complex algorithm based on role assignments and overrides. I would like to see exactly what a user's current permissions are, and I would like to be able to walk up the context stack and see the permissions at each level. It would be a great way to explore, learn, and debug the system. Currently, we can only guess a user's permissions, or perform tedious experiments in an attempt to deduce them.

The following proposal only applies to users who have permission to Assign roles to users in a given context

On roles-related pages (e.g., Course administration -> Assign roles or modedit pages), add a "View permissions" tab
  
Clicking the View permissions tab displays a list of users (for simplicity, show all users on the site).

In context Y, clicking on user X displays a page "Permissions for User X in context Y" (the complete list of permissions for the selected user in this context).

This gives complete transparency to the roles system. It lets us see the permissions the algorithm has computed from all assignments and overrides.

Two possible enhancements to the "Permissions for User X in context Y" page:

    * Highlight the value of each capability in the parent context (as it's done when displaying overrides)

    * Add an Up button, allowing you to change the page view to the parent context. For example, if the parent context of Y is Z, clicking the Up button will display the page "Permissions for User X in context Z." On the parent page, there would be two buttons, Up and Down, allowing you to either go up another level or return to the previous level. Using these buttons, you can "animate" the display of permissions. You should be able to walk all the way up to the System context.

See discussion http://moodle.org/mod/forum/discuss.php?d=86452




 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
No commits have yet been performed on this issue.