mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-04 19:53:44 +00:00
Update files for 6.0.0-alpha.1
This commit is contained in:
@@ -194,7 +194,7 @@ class UserController extends Controller
|
||||
$data = $request->getAll();
|
||||
|
||||
// can only update 'blocked' when user is admin.
|
||||
if(!$this->repository->hasRole(auth()->user(), 'owner')) {
|
||||
if (!$this->repository->hasRole(auth()->user(), 'owner')) {
|
||||
Log::debug('Quietly drop fields "blocked" and "blocked_code" from request.');
|
||||
unset($data['blocked'], $data['blocked_code']);
|
||||
}
|
||||
|
@@ -146,6 +146,5 @@ class ShowController extends Controller
|
||||
// trigger event to send them:
|
||||
event(new RequestedSendWebhookMessages());
|
||||
return response()->json([], 204);
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user