mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Improve code quality.
This commit is contained in:
@@ -34,7 +34,7 @@ class ConfigurationRequest extends Request
|
||||
public function authorize(): bool
|
||||
{
|
||||
// Only allow logged in users and admins
|
||||
return auth()->check() && auth()->user()->hasRole('owner');
|
||||
return auth()->check();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -33,7 +33,7 @@ class LinkTypeFormRequest extends Request
|
||||
public function authorize(): bool
|
||||
{
|
||||
// Only allow logged and admins
|
||||
return auth()->check() && auth()->user()->hasRole('owner');
|
||||
return auth()->check();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user