Update packages.

This commit is contained in:
James Cole
2022-03-30 20:09:19 +02:00
parent 1211a5c878
commit 3120e29940
14 changed files with 68 additions and 59 deletions

View File

@@ -81,7 +81,7 @@ class UserController extends Controller
return response()->json([], 500);
}
if ($admin->id !== $user->id && $this->repository->hasRole($admin, 'owner')) {
if ($this->repository->hasRole($admin, 'owner')) {
$this->repository->destroy($user);
return response()->json([], 204);