updateRule() public method
Updates a rule to the RBAC system.
public boolean updateRule ( $name, $rule ) | ||
---|---|---|
$name | string |
The name of the rule being updated |
$rule | yii\rbac\Rule |
The updated rule |
return | boolean |
Whether the rule is successfully updated |
throws | Exception |
if data validation or saving fails (such as the name of the rule is not unique) |
Please login to continue.