mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-30 04:23:11 +03:00
Refactored some permission controls and increased testing for roles system
This commit is contained in:
@ -106,7 +106,7 @@ class User extends Model implements AuthenticatableContract, CanResetPasswordCon
|
||||
*/
|
||||
public function attachRoleId($id)
|
||||
{
|
||||
$this->roles()->sync([$id]);
|
||||
$this->roles()->attach([$id]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user