diff options
author | d-skora <d.skora@clearcode.cc> | 2014-05-20 12:21:51 +0400 |
---|---|---|
committer | d-skora <d.skora@clearcode.cc> | 2014-05-20 12:21:51 +0400 |
commit | db037d6c63451385170f5acd778250319de60dfb (patch) | |
tree | 09dfe6deff77a5b1614a60ba0916b5618dd04d47 /plugins/SegmentEditor/API.php | |
parent | 7a8f9fe22cb7ffceb1bad7d870099f47a26ab844 (diff) |
PIWIK-767 cleanup after review
Diffstat (limited to 'plugins/SegmentEditor/API.php')
-rw-r--r-- | plugins/SegmentEditor/API.php | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/plugins/SegmentEditor/API.php b/plugins/SegmentEditor/API.php index bf29284b1c..f2a4d075bc 100644 --- a/plugins/SegmentEditor/API.php +++ b/plugins/SegmentEditor/API.php @@ -124,16 +124,9 @@ class API extends \Piwik\Plugin\API { $requiredAccess = isset(Config::getInstance()->General['segment_editor_required_access']) ? Config::getInstance()->General['segment_editor_required_access'] : "view"; - if( - false == ( - $this->checkSuperAdminAccess($requiredAccess) || + return ($this->checkSuperAdminAccess($requiredAccess) || $this->checkViewAccess($requiredAccess, $siteid) || - $this->checkAdminAccess($requiredAccess, $siteid) - ) - ) { - return false; - } - return true; + $this->checkAdminAccess($requiredAccess, $siteid)); } private function checkSuperAdminAccess($requiredAccess) |