]> git.mjollnir.org Git - moodle.git/commitdiff
editting of permissions enabled when adding new role MDL-7137; merged from MOODLE_17_...
authorskodak <skodak>
Wed, 25 Oct 2006 19:21:46 +0000 (19:21 +0000)
committerskodak <skodak>
Wed, 25 Oct 2006 19:21:46 +0000 (19:21 +0000)
admin/roles/manage.html

index 34d93ec0d22d14e72d0f37472e11f28d569f08a9..ca4c77873a0d467ddeb2f3c1e0d58a5f5213ea6a 100755 (executable)
@@ -98,7 +98,7 @@ foreach ($capabilities as $capability) {
         $localoverride->permission = $role->{$capability->name};
     }
 
-    $disabled = ($action != 'edit') ? ' disabled="disabled" ' : '';
+    $disabled = ($action != 'edit' and $action != 'add') ? ' disabled="disabled" ' : '';
 
     $strrisks = htmlentities(get_string('risks', 'role'));
     $strcapabilities = htmlentities(get_string('capabilities', 'role'));