diff options
Diffstat (limited to 'include/apps.php')
-rw-r--r-- | include/apps.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/apps.php b/include/apps.php index bd5c50405..135eaa99a 100644 --- a/include/apps.php +++ b/include/apps.php @@ -6,6 +6,7 @@ */ require_once('include/plugin.php'); +require_once('include/identity.php'); function get_system_apps() { @@ -93,6 +94,10 @@ function parse_app_description($f) { if(! local_user()) unset($ret); break; + case 'public_profile': + if(! is_public_profile()) + unset($ret); + break; case 'observer': if(! $observer) unset($ret); @@ -189,6 +194,10 @@ function app_render($papp,$mode = 'view') { if(! local_user()) return ''; break; + case 'public_profile': + if(! is_public_profile()) + return ''; + break; case 'observer': $observer = get_app()->get_observer(); if(! $observer) |