diff options
author | Mario Vavti <mario@mariovavti.com> | 2018-10-04 13:26:45 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2018-10-04 13:26:45 +0200 |
commit | c00dc6120d5a458a2386ab4e561437d9f8c62b3c (patch) | |
tree | 81ef4ff7849cea1cc57097b5174f64756e9446bd /Zotlabs/Lib/Apps.php | |
parent | d0605e8d5f7c666fffc01352de4d9ed4738f41ab (diff) | |
download | volse-hubzilla-c00dc6120d5a458a2386ab4e561437d9f8c62b3c.tar.gz volse-hubzilla-c00dc6120d5a458a2386ab4e561437d9f8c62b3c.tar.bz2 volse-hubzilla-c00dc6120d5a458a2386ab4e561437d9f8c62b3c.zip |
defperm app
Diffstat (limited to 'Zotlabs/Lib/Apps.php')
-rw-r--r-- | Zotlabs/Lib/Apps.php | 8 |
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) |