]> git.mxchange.org Git - friendica.git/blobdiff - mod/apps.php
Merge branch 'develop' into rewrites/dbm_is_result
[friendica.git] / mod / apps.php
index 8049b45fb3e846162b8a06ab41bfa2763b61b84a..4d6395e4ea64673f33ad3fd0517a15191d924393 100644 (file)
@@ -1,7 +1,14 @@
 <?php
 
-function apps_content(&$a) {
-       $title = t('Applications');
+function apps_content(App &$a) {
+    $privateaddons = get_config('config','private_addons');
+      if ($privateaddons === "1") {
+       if((! (local_user())))  {
+       info( t("You must be logged in to use addons. "));
+      return;};
+}
+
+      $title = t('Applications');
 
        if(count($a->apps)==0)
                notice( t('No installed applications.') . EOL);