mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-06-10 13:43:38 +08:00
Applied StyleCI changes
This commit is contained in:
@ -50,11 +50,12 @@ class ApiAuthenticate
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if the active session user has API access
|
||||
* Check if the active session user has API access.
|
||||
*/
|
||||
protected function sessionUserHasApiAccess(): bool
|
||||
{
|
||||
$hasApiPermission = user()->can('access-api');
|
||||
|
||||
return $hasApiPermission && hasAppAccess();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user