From 1e60a4386a78ed16fc3fdf99c1f398b607178804 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 6 Mar 2012 22:01:24 +0100 Subject: playlist_edit: move UID check to client_allow_file() --- src/playlist.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/playlist.h') diff --git a/src/playlist.h b/src/playlist.h index caed0a22..a21bdf24 100644 --- a/src/playlist.h +++ b/src/playlist.h @@ -100,15 +100,14 @@ playlist_get_queue(const struct playlist *playlist) void playlist_clear(struct playlist *playlist, struct player_control *pc); -#ifndef WIN32 /** - * Appends a local file (outside the music database) to the playlist, - * but only if the file's owner is equal to the specified uid. + * Appends a local file (outside the music database) to the playlist. + * + * Note: the caller is responsible for checking permissions. */ enum playlist_result playlist_append_file(struct playlist *playlist, struct player_control *pc, - const char *path, int uid, unsigned *added_id); -#endif + const char *path_fs, unsigned *added_id); enum playlist_result playlist_append_uri(struct playlist *playlist, struct player_control *pc, -- cgit v1.2.3