aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
Diffstat (limited to 'mod')
-rw-r--r--mod/display.php2
-rw-r--r--mod/settings.php6
2 files changed, 8 insertions, 0 deletions
diff --git a/mod/display.php b/mod/display.php
index c389eb976..be06c1e82 100644
--- a/mod/display.php
+++ b/mod/display.php
@@ -85,6 +85,8 @@ function display_content(&$a, $update = 0, $load = false) {
$target_item = $r[0];
}
+ $r = null;
+
if($target_item['item_restrict'] & ITEM_WEBPAGE) {
$x = q("select * from channel where channel_id = %d limit 1",
intval($target_item['uid'])
diff --git a/mod/settings.php b/mod/settings.php
index f9568feb3..81596a27e 100644
--- a/mod/settings.php
+++ b/mod/settings.php
@@ -935,6 +935,10 @@ function settings_content(&$a) {
}
}
+
+ $permissions_role = get_pconfig(local_user(),'system','permissions_role');
+ $permissions_set = (($permissions_role && $permissions_role != 'custom') ? true : false);
+
$o .= replace_macros($stpl,array(
'$ptitle' => t('Channel Settings'),
@@ -955,6 +959,8 @@ function settings_content(&$a) {
'$adult' => array('adult', t('Adult Content'), $adult_flag, t('This channel frequently or regularly publishes adult content. (Please tag any adult material and/or nudity with #NSFW)')),
'$h_prv' => t('Security and Privacy Settings'),
+ '$permissions_set' => $permissions_set,
+ '$perms_set_msg' => t('Your permissions are already configured. Click to view/adjust'),
'$hide_presence' => array('hide_presence', t('Hide my online presence'),$hide_presence, t('Prevents displaying in your profile that you are online')),