Only allow owner and admin to delete playlists

This commit is contained in:
Shadowghost
2024-04-05 21:11:09 +02:00
parent 9031aae653
commit ddda30fe23
2 changed files with 6 additions and 1 deletions

View File

@@ -833,7 +833,7 @@ namespace MediaBrowser.Controller.Entities
return CanDelete() && IsAuthorizedToDelete(user, allCollectionFolders);
}
public bool CanDelete(User user)
public virtual bool CanDelete(User user)
{
var allCollectionFolders = LibraryManager.GetUserRootFolder().Children.OfType<Folder>().ToList();