Skip to content

Commit

Permalink
override roles: MDL-8313 followup - don't show capabilities you can't…
Browse files Browse the repository at this point in the history
… change the override of in basic mode.
  • Loading branch information
tjhunt committed Nov 24, 2008
1 parent 7da3ff2 commit e494fbf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions admin/roles/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -904,6 +904,10 @@ public function __construct($context, $roleid, $safeoverridesonly) {
$this->stradvmessage = get_string('useshowadvancedtochange', 'role');
}

protected function skip_row($capability) {
return is_legacy($capability->name) || $capability->locked;
}

protected function add_permission_cells($capability) {
if ($this->permissions[$capability->name] == CAP_PROHIBIT) {
$permname = $this->allpermissions[CAP_PROHIBIT];
Expand Down

0 comments on commit e494fbf

Please sign in to comment.