mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-12 18:22:16 +01:00
Member update endpoint can now change ownership
This commit is contained in:
committed by
Gregor Vostrak
parent
264b7c9b8d
commit
3a17ae83ae
@@ -27,7 +27,7 @@ class UpdateMemberRole
|
||||
*/
|
||||
public function update(User $actingUser, Organization $organization, string $userId, string $role): void
|
||||
{
|
||||
if (! app(PermissionStore::class)->has($organization, 'members:change-role')) {
|
||||
if (! app(PermissionStore::class)->has($organization, 'members:change-ownership')) {
|
||||
throw new AuthorizationException();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user