mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
fix admin permission issues
This commit is contained in:
@@ -22,6 +22,7 @@ abstract class AbstractDeleteRecord
|
||||
}
|
||||
|
||||
} catch (QueryException|\Exception $exception){
|
||||
dd($exception);
|
||||
throw new MalformedRequestException('Unable to update the record due to unexpected error');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -60,7 +60,6 @@ class DeleteUserLogic extends AbstractControllerLogic
|
||||
public function logic(Request $request) : JsonResponse
|
||||
{
|
||||
$user = $this->fetchesUser->execute(['id' => $request->route('id')]);
|
||||
dd($user);
|
||||
$this->canDeleteUser->passes();
|
||||
$this->deletesUser->execute($user);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user