Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
return $operations;
}
+ /**
+ * @param string $operationClass
+ * @return ScopeContext[]
+ */
public function getAllConfiguredScopesForOperation(string $operationClass): array {
static $scopesByOperation = [];
if (isset($scopesByOperation[$operationClass])) {
}
if($this->entity instanceof IEntity) {
+ /** @var ScopeContext[] $additionalScopes */
$additionalScopes = $this->manager->getAllConfiguredScopesForOperation($class);
foreach ($additionalScopes as $hash => $scopeCandidate) {
- /** @var ScopeContext $scopeCandidate */
if ($scopeCandidate->getScope() !== IManager::SCOPE_USER || in_array($scopeCandidate, $scopes)) {
continue;
}