Migrated remaining relation permission usages

Now all tests are passing.
Some level of manual checks to do.
This commit is contained in:
Dan Brown
2023-01-24 19:04:32 +00:00
parent 2d1f1abce4
commit 1660e72cc5
6 changed files with 29 additions and 46 deletions

View File

@ -200,6 +200,7 @@ class User extends Model implements AuthenticatableContract, CanResetPasswordCon
public function attachRole(Role $role)
{
$this->roles()->attach($role->id);
$this->unsetRelation('roles');
}
/**