1
0
Fork 0

Remove undocumented use of $_REQUEST['visibility'] in api_fr_photo_create_update()

- Visibility is inferred from ACL strings
This commit is contained in:
Hypolite Petovan 2020-12-21 22:21:42 -05:00
parent 42d05bcc1b
commit d9371d37ad

View file

@ -4219,7 +4219,7 @@ function api_fr_photo_create_update($type)
$deny_cid = $_REQUEST['deny_cid' ] ?? null;
$allow_gid = $_REQUEST['allow_gid'] ?? null;
$deny_gid = $_REQUEST['deny_gid' ] ?? null;
$visibility = !empty($_REQUEST['visibility']) && $_REQUEST['visibility'] !== "false";
$visibility = !$allow_cid && !$deny_cid && !$allow_gid && !$deny_gid;
// do several checks on input parameters
// we do not allow calls without album string