aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/Apps.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-02-15 09:00:52 +0100
committerMario Vavti <mario@mariovavti.com>2018-02-15 09:00:52 +0100
commit45b42cbc1c5356da61923f5bc2fbca1cec9f9119 (patch)
treeb052b2d5e52b751aa7242e7938fca56879d2da7e /Zotlabs/Lib/Apps.php
parent033608292007a726b6fdffe839f6e481939f7a1d (diff)
parent465d89129caaaa0240229f8d6f81d68f26eb60b0 (diff)
downloadvolse-hubzilla-45b42cbc1c5356da61923f5bc2fbca1cec9f9119.tar.gz
volse-hubzilla-45b42cbc1c5356da61923f5bc2fbca1cec9f9119.tar.bz2
volse-hubzilla-45b42cbc1c5356da61923f5bc2fbca1cec9f9119.zip
Merge remote-tracking branch 'mike/master' into dev
Diffstat (limited to 'Zotlabs/Lib/Apps.php')
-rw-r--r--Zotlabs/Lib/Apps.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/Zotlabs/Lib/Apps.php b/Zotlabs/Lib/Apps.php
index d2a307fd5..f91dc8e49 100644
--- a/Zotlabs/Lib/Apps.php
+++ b/Zotlabs/Lib/Apps.php
@@ -119,6 +119,7 @@ class Apps {
static public function parse_app_description($f,$translate = true) {
+
$ret = array();
$baseurl = z_root();
@@ -194,6 +195,10 @@ class Apps {
if(! is_public_profile())
unset($ret);
break;
+ case 'public_stream':
+ if(! can_view_public_stream())
+ unset($ret);
+ break;
case 'observer':
if(! $observer)
unset($ret);
@@ -346,6 +351,10 @@ class Apps {
if(! is_public_profile())
return '';
break;
+ case 'public_stream':
+ if(! can_view_public_stream())
+ return '';
+ break;
case 'observer':
$observer = \App::get_observer();
if(! $observer)