rbac\BaseManager update()

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)

doc_Yii
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.