mirror of
https://github.com/agersant/polaris
synced 2025-01-30 22:03:39 +00:00
Allow non-admin users to user playlists
This commit is contained in:
parent
4f1cfa7be6
commit
f181363727
1 changed files with 1 additions and 5 deletions
|
@ -166,11 +166,7 @@ fn get_endpoints(db: Arc<DB>, index_channel: Arc<Mutex<Sender<index::Command>>>)
|
|||
},
|
||||
"list_playlists");
|
||||
|
||||
let mut playlist_api_chain = Chain::new(playlist_router);
|
||||
let admin_req = AdminRequirement { db: db.clone() };
|
||||
playlist_api_chain.link_around(admin_req);
|
||||
|
||||
auth_api_mount.mount("/playlist/", playlist_api_chain);
|
||||
auth_api_mount.mount("/playlist/", playlist_router);
|
||||
}
|
||||
|
||||
let mut auth_api_chain = Chain::new(auth_api_mount);
|
||||
|
|
Loading…
Reference in a new issue