add scramble
This commit is contained in:
1 parent
fb861daf01
commit
dac9b6fab9
5 files changed
+223
-1
No files matched your search
@@ -90,6 +90,18 @@ public function withoutRole(): bool
|
||||
return $this->roles->count() === 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if user can access api docs
|
||||
*/
|
||||
public function canAccessApiDocs(): bool
|
||||
{
|
||||
return in_array($this->email, [
|
||||
'nurmuhammet@mail.com',
|
||||
'mahmyt1206@gmail.com',
|
||||
'api@mail.com',
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if user is me.
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user