reduce code

pull/6923/head
Philipp Holzer 4 years ago committed by Hypolite Petovan
parent 25a7086fc5
commit 8e0355bec3
  1. 6
      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();
}
}

Loading…
Cancel
Save