update() public method
Updates the specified role, permission or rule in the system.
| public boolean update ( $name, $object ) | ||
|---|---|---|
| $name | string |
The old name of the role, permission or rule |
| $object | yii\rbac\Role|yii\rbac\Permission|yii\rbac\Rule | |
| return | boolean |
Whether the update is successful |
| throws | Exception |
if data validation or saving fails (such as the name of the role or permission is not unique) |
Please login to continue.