Improve code quality.

This commit is contained in:
James Cole
2018-07-09 19:24:08 +02:00
parent 76386dad7d
commit 5665f127aa
55 changed files with 278 additions and 100 deletions

View File

@@ -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();
}
/**

View File

@@ -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();
}
/**