Upgrade to 3.8.0

This commit is contained in:
Bastian Allgeier
2022-10-06 10:11:54 +02:00
parent a9ed4e45ca
commit 7d168aae58
332 changed files with 26337 additions and 21977 deletions

View File

@@ -67,7 +67,10 @@ abstract class ModelPermissions
}
// check for a custom overall can method
if (method_exists($this, 'can' . $action) === true && $this->{'can' . $action}() === false) {
if (
method_exists($this, 'can' . $action) === true &&
$this->{'can' . $action}() === false
) {
return false;
}
@@ -83,7 +86,10 @@ abstract class ModelPermissions
return true;
}
if (is_array($options) === true && A::isAssociative($options) === true) {
if (
is_array($options) === true &&
A::isAssociative($options) === true
) {
return $options[$role] ?? $options['*'] ?? false;
}
}