aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-10-04 13:26:45 +0200
committerMario Vavti <mario@mariovavti.com>2018-10-04 13:26:45 +0200
commitc00dc6120d5a458a2386ab4e561437d9f8c62b3c (patch)
tree81ef4ff7849cea1cc57097b5174f64756e9446bd /Zotlabs/Lib
parentd0605e8d5f7c666fffc01352de4d9ed4738f41ab (diff)
downloadvolse-hubzilla-c00dc6120d5a458a2386ab4e561437d9f8c62b3c.tar.gz
volse-hubzilla-c00dc6120d5a458a2386ab4e561437d9f8c62b3c.tar.bz2
volse-hubzilla-c00dc6120d5a458a2386ab4e561437d9f8c62b3c.zip
defperm app
Diffstat (limited to 'Zotlabs/Lib')
-rw-r--r--Zotlabs/Lib/Apps.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/Zotlabs/Lib/Apps.php b/Zotlabs/Lib/Apps.php
index ec1f3f9dc..8db4e000f 100644
--- a/Zotlabs/Lib/Apps.php
+++ b/Zotlabs/Lib/Apps.php
@@ -271,6 +271,10 @@ class Apps {
if(! can_view_public_stream())
unset($ret);
break;
+ case 'custom_role':
+ if(get_pconfig(local_channel(),'system','permissions_role') != 'custom')
+ unset($ret);
+ break;
case 'observer':
if(! $observer)
unset($ret);
@@ -468,6 +472,10 @@ class Apps {
if(! can_view_public_stream())
return '';
break;
+ case 'custom_role':
+ if(get_pconfig(local_channel(),'system','permissions_role') != 'custom')
+ return '';
+ break;
case 'observer':
$observer = \App::get_observer();
if(! $observer)