Skip to content

Commit

Permalink
Fixed bug with deny access
Browse files Browse the repository at this point in the history
  • Loading branch information
execut committed Aug 28, 2018
1 parent 4d8bd78 commit 1e92a39
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@ public function getSettingsCrudFieldsPlugins() {
}

public function checkHasAccessToSetting($id) {
$result = $this->getPluginsResults(__FUNCTION__, true, func_get_args());
if ($result === null) {
if (!count($this->plugins)) {
return true;
}

$result = $this->getPluginsResults(__FUNCTION__, true, func_get_args());

return $result;
}
}

0 comments on commit 1e92a39

Please sign in to comment.