Merge pull request #18461 from nextcloud/fix/noid/ensure-entity-on-scope-extension
Flows that are managing themselves do not necessarily set the entity
This commit is contained in:
commit
47a4a037ae
|
@ -121,6 +121,7 @@ class RuleMatcher implements IRuleMatcher {
|
||||||
$operations = array_merge($operations, $this->manager->getOperations($class, $scope));
|
$operations = array_merge($operations, $this->manager->getOperations($class, $scope));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if($this->entity instanceof IEntity) {
|
||||||
$additionalScopes = $this->manager->getAllConfiguredScopesForOperation($class);
|
$additionalScopes = $this->manager->getAllConfiguredScopesForOperation($class);
|
||||||
foreach ($additionalScopes as $hash => $scopeCandidate) {
|
foreach ($additionalScopes as $hash => $scopeCandidate) {
|
||||||
/** @var ScopeContext $scopeCandidate */
|
/** @var ScopeContext $scopeCandidate */
|
||||||
|
@ -131,6 +132,7 @@ class RuleMatcher implements IRuleMatcher {
|
||||||
$operations = array_merge($operations, $this->manager->getOperations($class, $scopeCandidate));
|
$operations = array_merge($operations, $this->manager->getOperations($class, $scopeCandidate));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$matches = [];
|
$matches = [];
|
||||||
foreach ($operations as $operation) {
|
foreach ($operations as $operation) {
|
||||||
|
|
Loading…
Reference in New Issue