diff options
Diffstat (limited to 'plugins/MobileMessaging/API.php')
-rw-r--r-- | plugins/MobileMessaging/API.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/MobileMessaging/API.php b/plugins/MobileMessaging/API.php index 345c633b15..9e24700d8a 100644 --- a/plugins/MobileMessaging/API.php +++ b/plugins/MobileMessaging/API.php @@ -417,6 +417,7 @@ class API extends \Piwik\Plugin\API public function getDelegatedManagement() { Piwik::checkUserHasSomeViewAccess(); - return Option::get(MobileMessaging::DELEGATED_MANAGEMENT_OPTION) == 'true'; + $option = Option::get(MobileMessaging::DELEGATED_MANAGEMENT_OPTION); + return $option === 'true'; } } |