Skip to content

Commit

Permalink
fix settings of playlist acls
Browse files Browse the repository at this point in the history
  • Loading branch information
tgloeggl committed Jun 28, 2024
1 parent 025d5a6 commit 83ecc87
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Models/Playlists.php
Original file line number Diff line number Diff line change
Expand Up @@ -432,11 +432,11 @@ public static function checkPlaylistACL($oc_playlist, $playlist)
$current_acl = array_values($current_acl);

sort($current_acl);
sort($old_acl);
sort($acl);

if ($old_acl <> $current_acl) {
if ($acl <> $current_acl) {
// add the unknown acls to keep them untouched
$new_acl = array_merge($old_acls['other'], $current_acl);
$new_acl = array_merge($old_acls['other'], $acl);

$api_client = ApiPlaylistsClient::getInstance($playlist->config_id);
$api_client->updatePlaylist($oc_playlist->id, [
Expand Down

0 comments on commit 83ecc87

Please sign in to comment.