continue;
}
+ if (DI::pConfig()->get($uid, 'system', 'accessible-photos')) {
+ $condition = ['resource-id' => $image_rid, 'uid' => $uid];
+ Logger::info('Set accessibility', ['condition' => $condition]);
+ Photo::update(['accessible' => true], $condition);
+ }
+
// Ensure to only modify photos that you own
$srch = '<' . intval($original_contact_id) . '>';
$fields = ['allow_cid' => $str_contact_allow, 'allow_gid' => $str_group_allow,
'deny_cid' => $str_contact_deny, 'deny_gid' => $str_group_deny];
- if (DI::pConfig()->get($uid, 'system', 'accessible-photos')) {
- $fields['accessible'] = true;
- }
-
$condition = ['resource-id' => $image_rid, 'uid' => $uid];
Logger::info('Set permissions', ['condition' => $condition, 'permissions' => $fields]);
Photo::update($fields, $condition);