Prevent "null" permissions on photos

2022.09-rc
Michael 2020-03-12 06:20:49 +00:00
rodzic 88522fc832
commit 7863406080
1 zmienionych plików z 7 dodań i 0 usunięć

Wyświetl plik

@ -298,6 +298,13 @@ class Photo
$backend_ref = $storage->put($Image->asString(), $backend_ref);
}
// Prevent "null" permissions
if (!empty($uid)) {
$allow_cid = $allow_cid ?? '<' . $uid . '>';
$allow_gid = $allow_gid ?? '';
$deny_cid = $deny_cid ?? '';
$deny_gid = $deny_gid ?? '';
}
$fields = [
"uid" => $uid,