diff options
Diffstat (limited to 'playlist.php')
-rw-r--r-- | playlist.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/playlist.php b/playlist.php index 914a167c..64be7f7e 100644 --- a/playlist.php +++ b/playlist.php @@ -87,6 +87,16 @@ switch ($action) { /* Show the Playlist */ show_playlist($playlist); break; + case 'add_dyn_song': + /* Check Rights */ + if (!$GLOBALS['user']->has_access(100) && $GLOBALS['user']->username != $playlist->username) { + access_denied(); + break; + } + + $playlist->add_dyn_song(); + show_playlist($playlist); + break; case 'create_playlist': case 'create': /* Check rights */ @@ -139,7 +149,6 @@ switch ($action) { show_import_playlist(); break; case 'set_track_numbers': - print_r($_REQUEST); /* Make sure they have permission */ if (!$GLOBALS['user']->has_access(100) && $GLOBALS['user']->username != $playlist->user) { access_denied(); |