Issue Details (XML | Word | Printable)

Key: MDL-9013
Type: Task Task
Status: Open Open
Priority: Major Major
Assignee: Petr Skoda
Reporter: Petr Skoda
Votes: 3
Watchers: 2
Operations

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

Improve explanation of legacy roles

Created: 23/Mar/07 06:33 AM   Updated: 21/Dec/07 09:59 PM
Return to search
Component/s: Roles
Affects Version/s: 1.8
Fix Version/s: None

Issue Links:
Relates
 

Participants: Helen Foster, John Isner and Petr Skoda
Security Level: None
QA Assignee: Helen Foster
Affected Branches: MOODLE_18_STABLE


 Description  « Hide
Legacy roles were originally created to help with transition to new roles system, but unfortunately the transition is not over yet and sometimes the legacy caps are used for something else than intended.

Legacy roles are needed for:
1/ old modules and plugins
2/ not fully converted code in core - guest access, primary admin, creators in ldap sync, restore, etc.
3/ upgrades of existing caps
4/ reseting of existing caps

In general it should be recommended to set legacy type for roles that are similar to old student/teacher/admin/creator and not set for roles that are assigned to add extra capabilities to users that already have student/teacher-like role


Possible solutions:
1/ remove use of all legacy caps from code - the worst problems is legacy:guest; creators are being worked on; it needs extra settings and configuration options which are going to add some more headaches :-(
2/ improve/redesign reset permissions to defaults
3/ add help icon to role definition
4/ improve docs
5/ implement role templates instead of legacy types - or if the legacy types are not used in code, we could just rename the legacy to template.

I am afraid we can not do this properly before the 1.8 release :-(

Any ideas?


 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Helen Foster added a comment - 09/May/07 08:22 PM
Suggestion for legacy role drop-down menu help pop-up (copied from MDL-7633):

"Legacy role types provide backward compatibility. A legacy role type may be set if your site uses old 3rd party code that was not designed for Moodle 1.7 and doesn't yet support roles. Otherwise, it's not necessary to set a legacy role type.

Setting a legacy role type does NOT provide a new role with all capabilities of a pre-Moodle 1.7 role."


Helen Foster added a comment - 09/May/07 08:41 PM
Added recommendation of when to set a legacy role type to http://docs.moodle.org/en/Manage_roles

Petr Skoda added a comment - 10/May/07 12:22 AM
Unfortunately it is still required to set legacy roles in some cases - the most abused one is legacy:guest and teacher

John Isner added a comment - 21/Dec/07 02:06 AM
It would help to add a Help button next to the Legacy role type dropdown on the Add new role page.