Flows that are managing themselves do not necessarily set the entity
for instance files_automatedtagging, which works on a lower level. Fixes a Call to a member function isLegitimatedForUserId() on null. Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
parent
34c48aaa92
commit
0a00903261
|
@ -121,6 +121,7 @@ class RuleMatcher implements IRuleMatcher {
|
|||
$operations = array_merge($operations, $this->manager->getOperations($class, $scope));
|
||||
}
|
||||
|
||||
if($this->entity instanceof IEntity) {
|
||||
$additionalScopes = $this->manager->getAllConfiguredScopesForOperation($class);
|
||||
foreach ($additionalScopes as $hash => $scopeCandidate) {
|
||||
/** @var ScopeContext $scopeCandidate */
|
||||
|
@ -131,6 +132,7 @@ class RuleMatcher implements IRuleMatcher {
|
|||
$operations = array_merge($operations, $this->manager->getOperations($class, $scopeCandidate));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$matches = [];
|
||||
foreach ($operations as $operation) {
|
||||
|
|
Loading…
Reference in New Issue