reduce code
This commit is contained in:
parent
25a7086fc5
commit
8e0355bec3
1 changed files with 2 additions and 4 deletions
|
@ -16,10 +16,8 @@ class Apps extends BaseModule
|
||||||
public static function init()
|
public static function init()
|
||||||
{
|
{
|
||||||
$privateaddons = Config::get('config', 'private_addons');
|
$privateaddons = Config::get('config', 'private_addons');
|
||||||
if ($privateaddons === "1") {
|
if ($privateaddons === "1" && !local_user()) {
|
||||||
if (!local_user()) {
|
|
||||||
self::getApp()->internalRedirect();
|
self::getApp()->internalRedirect();
|
||||||
};
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue