feat(plugins): require users permission for PlaylistProvider and validate owner

PlaylistProvider capability now requires 'users' permission in the
manifest (matching existing Scrobbler behavior) and validates that the
resolved owner user ID is in the plugin's allowed users list before
creating playlists.
This commit is contained in:
Deluan 2026-03-05 17:37:26 -05:00
commit 9053a4ffe9
6 changed files with 126 additions and 3 deletions

View file

@ -2,5 +2,10 @@
"name": "Test Playlist Provider",
"author": "Navidrome Test",
"version": "1.0.0",
"description": "A test playlist provider plugin for integration testing"
"description": "A test playlist provider plugin for integration testing",
"permissions": {
"users": {
"reason": "Required for playlist ownership"
}
}
}