Skip to content

Commit

Permalink
add check in updateAcl
Browse files Browse the repository at this point in the history
  • Loading branch information
tgloeggl committed Nov 25, 2024
1 parent 2793b0e commit ac3aaa1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/Models/Videos.php
Original file line number Diff line number Diff line change
Expand Up @@ -732,6 +732,11 @@ public function updateAcl($new_vis = null)
$api_client = ApiEventsClient::getInstance($this->config_id);
$current_acl = $api_client->getAcl($this->episode);

// prevent updating acl if something went wrong
if (!is_array($acl)) {
return;
}

// one ACL for reading AND for reading and writing
$acl = [
[
Expand Down

0 comments on commit ac3aaa1

Please sign in to comment.