From f181363727d2d1664bc04f9860cd56893f68a07b Mon Sep 17 00:00:00 2001 From: Antoine Gersant <antoine.gersant@lesforges.org> Date: Mon, 17 Jul 2017 23:09:43 -0700 Subject: [PATCH] Allow non-admin users to user playlists --- src/api.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/api.rs b/src/api.rs index f4f4717..71ca0fb 100644 --- a/src/api.rs +++ b/src/api.rs @@ -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);