aboutsummaryrefslogtreecommitdiffstats
path: root/mod/profperm.php
diff options
context:
space:
mode:
authorsirius <sirius83@gmx.de>2014-04-14 00:45:24 +0200
committersirius <sirius83@gmx.de>2014-04-14 00:45:24 +0200
commit8b8feea12f886a22f7eb66456be7828b7aef455e (patch)
tree4aa3563cf2f68e06b539bff4521bd7b00b42db2e /mod/profperm.php
parent153cc599a3ffe406200462f3cc7a597c34e8fcf7 (diff)
downloadvolse-hubzilla-8b8feea12f886a22f7eb66456be7828b7aef455e.tar.gz
volse-hubzilla-8b8feea12f886a22f7eb66456be7828b7aef455e.tar.bz2
volse-hubzilla-8b8feea12f886a22f7eb66456be7828b7aef455e.zip
Added hackish support for permissions-sync between profile and profile-pictures
Diffstat (limited to 'mod/profperm.php')
-rw-r--r--mod/profperm.php12
1 files changed, 8 insertions, 4 deletions
diff --git a/mod/profperm.php b/mod/profperm.php
index 08838831b..4a52447b8 100644
--- a/mod/profperm.php
+++ b/mod/profperm.php
@@ -10,7 +10,7 @@ function profperm_init(&$a) {
$channel = $a->get_channel();
$which = $channel['channel_address'];
- $profile = $a->argv[1];
+ $profile = $a->argv[1];
profile_load($a,$which,$profile);
@@ -89,6 +89,10 @@ function profperm_content(&$a) {
}
+ //Time to update the permissions on the profile-pictures as well
+ require_once('mod/profile_photo.php');
+ profile_photo_set_profile_perms($profile['id']);
+
$r = q("SELECT * FROM abook left join xchan on abook_xchan = xchan_hash WHERE abook_channel = %d AND abook_profile = %d",
intval(local_user()),
intval(argv(1))
@@ -111,9 +115,9 @@ function profperm_content(&$a) {
}
$o .= '<div id="prof-update-wrapper">';
- if($change)
+ if($change)
$o = '';
-
+
$o .= '<div id="prof-members-title">';
$o .= '<h3>' . t('Visible To') . '</h3>';
$o .= '</div>';
@@ -134,7 +138,7 @@ function profperm_content(&$a) {
$o .= '<h3>' . t("All Connections") . '</h3>';
$o .= '</div>';
$o .= '<div id="prof-all-contacts">';
-
+
$r = abook_connections(local_user());
if($r) {