Allow users to hand out admin rights.

This commit is contained in:
James Cole
2020-03-23 17:54:49 +01:00
parent 76c89a8efa
commit d6797b8428
7 changed files with 30 additions and 8 deletions

View File

@@ -157,9 +157,10 @@ interface UserRepositoryInterface
/**
* Remove any role the user has.
*
* @param User $user
* @param User $user
* @param string $role
*/
public function removeRole(User $user): void;
public function removeRole(User $user, string $role): void;
/**
* Set MFA code.