Lint
This commit is contained in:
parent
66539bbe3a
commit
9819088563
|
@ -1969,7 +1969,7 @@ App::post('/v1/databases/:databaseId/collections/:collectionId/documents')
|
|||
} else {
|
||||
foreach ($allowedPermissions as $permission) {
|
||||
/**
|
||||
* If an allowed permission was not passed in the request,
|
||||
* If an allowed permission was not passed in the request,
|
||||
* and there is a current user, add it for the current user.
|
||||
*/
|
||||
if (empty(\preg_grep("#^{$permission}\(.+\)$#", $permissions)) && !empty($user->getId())) {
|
||||
|
|
|
@ -247,8 +247,8 @@ App::init()
|
|||
/*
|
||||
* ACL Check
|
||||
*/
|
||||
$role = ($user->isEmpty())
|
||||
? Role::guests()->toString()
|
||||
$role = ($user->isEmpty())
|
||||
? Role::guests()->toString()
|
||||
: Role::users()->toString();
|
||||
|
||||
// Add user roles
|
||||
|
|
2
composer.lock
generated
2
composer.lock
generated
|
@ -5383,5 +5383,5 @@
|
|||
"platform-overrides": {
|
||||
"php": "8.0"
|
||||
},
|
||||
"plugin-api-version": "2.2.0"
|
||||
"plugin-api-version": "2.3.0"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue