Skip to content

Commit

Permalink
Context: Always allow cms plugin.
Browse files Browse the repository at this point in the history
  • Loading branch information
janbarasek authored Jan 13, 2021
1 parent 5ab4ffe commit 0faf62b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Context.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ public function checkPermission(string $plugin, ?string $view = null): bool
? $this->authorizator->get()->isAllowedPlugin($pluginName)
: $this->authorizator->get()->isAllowedComponent($pluginName, $view);
} catch (\InvalidArgumentException $e) {
return false;
return $pluginName === 'cms';
}
}

Expand Down

0 comments on commit 0faf62b

Please sign in to comment.