diff --git a/lib/private/app/appmanager.php b/lib/private/app/appmanager.php index b060b2e6e1..7cb945784b 100644 --- a/lib/private/app/appmanager.php +++ b/lib/private/app/appmanager.php @@ -148,6 +148,10 @@ class AppManager implements IAppManager { } elseif (is_null($user)) { return false; } else { + if(empty($enabled)){ + return false; + } + $groupIds = json_decode($enabled); if (!is_array($groupIds)) {