|
[
Permalink
| « Hide
]
Petr Skoda added a comment - 04/Mar/07 06:33 AM
fixed in cvs
Hi Petr,
Just testing this improvement and found it confusing to have the role reset button appear for new roles. For example: 1. Create a duplicate teacher role and change some permissions. Expected result: Role reset Is it possible to hide the role reset button for new roles? I have changed the strings a bit, it works as following:
please help me with the languages strings so that ppl understand that $string['resetrolesure'] = 'Are you sure that you want to reset role \"$a->name ($a->shortname)\" to defaults?<p></p>The defaults are taken from the selected legacy capability ($a->legacytype).'; $string['resetrolesurenolegacy'] = 'Are you sure that you want to removed all permissions defined in this role \"$a->name ($a->shortname)\"?'; Hi Petr,
I tested your changes using the duplicate teacher role example above and found that the reset button worked exactly as expected However, I think the role reset button for new roles is still confusing. Example 2: 1. Create a new role allowing moodle/legacy:editingteacher only. Result: All legacy editingteacher permissions are set, even though they weren't before! I still think it would be preferable if the role reset button is hidden for new roles. Isn't it simpler to just delete any new role with no legacy selected rather than having to reset it to clear all permissions? What if we call the button "Set defaults" if legacy present and "Reset" if no legacy set?
The more I play around with role reset, the more I wish it could be disabled for new roles. Otherwise it always gives unexpected results.
However, if this is just not possible then perhaps the language strings could read: $string['resetrolesure'] = 'Are you sure that you want to reset role \"$a->name ($a->shortname)\" to defaults?'; $string['resetrolesurenolegacy'] = 'Are you sure that you want to clear all permissions defined in the role \"$a->name ($a->shortname)\"?'; The reset button has now different label and confirmation if legacy type set.
going to file a new report for legacy roles confusion.. thanks for the feedback Closing, since everyone seems happy with the reset to defaults button. Thanks Petr
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||