Added permission handling of profile-photos

Now we automatically set the appropiate viewing-permissions on profile edit and revert photos chosen as default profile picture bacl to public access.
This commit is contained in:
sirius
2014-04-20 00:31:18 +02:00
parent b0dc9f13ed
commit 3845e1de7d
2 changed files with 29 additions and 16 deletions

View File

@@ -95,7 +95,6 @@ function profperm_content(&$a) {
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 = '%s'",
intval(local_user()),
dbesc($profile['profile_guid'])
);