]> git.mxchange.org Git - friendica.git/blobdiff - mod/apps.php
Merge develop into 3011_hcard_vcard
[friendica.git] / mod / apps.php
index 8049b45fb3e846162b8a06ab41bfa2763b61b84a..a821ef5d5b89192b5534df7e8b78cd074e9a7964 100644 (file)
@@ -1,7 +1,14 @@
 <?php
 
 function apps_content(&$a) {
-       $title = t('Applications');
+    $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);