diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-01-05 06:41:04 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-01-05 06:41:04 +0000 |
commit | d0e0e716af8e19de76d861aa0f334b55203a759f (patch) | |
tree | 621bd1e4104921d23ba27c1d90863387ca849720 /playlist.php | |
parent | 6daae3271c5126c2cd4c08b98b451ebe51fa90e0 (diff) | |
download | ampache-d0e0e716af8e19de76d861aa0f334b55203a759f.tar.gz ampache-d0e0e716af8e19de76d861aa0f334b55203a759f.tar.bz2 ampache-d0e0e716af8e19de76d861aa0f334b55203a759f.zip |
aww yea
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(); |