mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-06-25 15:21:32 +08:00
Migrated remaining relation permission usages
Now all tests are passing. Some level of manual checks to do.
This commit is contained in:
@ -200,6 +200,7 @@ class User extends Model implements AuthenticatableContract, CanResetPasswordCon
|
||||
public function attachRole(Role $role)
|
||||
{
|
||||
$this->roles()->attach($role->id);
|
||||
$this->unsetRelation('roles');
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user