Skip to content

Commit 0faf62b

Browse files
authored
Context: Always allow cms plugin.
1 parent 5ab4ffe commit 0faf62b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Context.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ public function checkPermission(string $plugin, ?string $view = null): bool
175175
? $this->authorizator->get()->isAllowedPlugin($pluginName)
176176
: $this->authorizator->get()->isAllowedComponent($pluginName, $view);
177177
} catch (\InvalidArgumentException $e) {
178-
return false;
178+
return $pluginName === 'cms';
179179
}
180180
}
181181

0 commit comments

Comments
 (0)