Archived
fix: little oops
This commit is contained in:
1 parent
0ec936088e
commit
87b1edbdca
2 files changed
+4
-4
No files matched your search
@@ -10,11 +10,11 @@ class RequestQuotePolicy
|
||||
|
||||
public function approve(): bool
|
||||
{
|
||||
return auth()->user()->is_admin;
|
||||
return !empty(auth()->user()) && auth()->user()->is_admin;
|
||||
}
|
||||
|
||||
public function reject(): bool
|
||||
{
|
||||
return auth()->user()->is_admin;
|
||||
return !empty(auth()->user()) && auth()->user()->is_admin;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user