From 8e0355bec33807c88e1845f52de3449ce6438d0b Mon Sep 17 00:00:00 2001 From: Philipp Holzer Date: Sun, 24 Feb 2019 17:51:53 +0100 Subject: [PATCH] reduce code --- src/Module/Apps.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Module/Apps.php b/src/Module/Apps.php index a23ac0a77b..efba071aa3 100644 --- a/src/Module/Apps.php +++ b/src/Module/Apps.php @@ -16,10 +16,8 @@ class Apps extends BaseModule public static function init() { $privateaddons = Config::get('config', 'private_addons'); - if ($privateaddons === "1") { - if (!local_user()) { - self::getApp()->internalRedirect(); - }; + if ($privateaddons === "1" && !local_user()) { + self::getApp()->internalRedirect(); } } -- 2.39.5