diff options
author | Paul Arthur <paul.arthur@flowerysong.com> | 2013-01-26 00:57:06 -0500 |
---|---|---|
committer | Paul Arthur <paul.arthur@flowerysong.com> | 2013-01-26 00:57:40 -0500 |
commit | 42133f38d223a2b3b81d309f2d1a983ef2012485 (patch) | |
tree | a9a01095cbb54474e83f8ec220a15991542819e1 /playlist.php | |
parent | 5f02e4f43cb1423653c156e612da53e4c5938583 (diff) | |
download | ampache-42133f38d223a2b3b81d309f2d1a983ef2012485.tar.gz ampache-42133f38d223a2b3b81d309f2d1a983ef2012485.tar.bz2 ampache-42133f38d223a2b3b81d309f2d1a983ef2012485.zip |
Move access_denied() from lib/ui.lib.php to UI
Diffstat (limited to 'playlist.php')
-rw-r--r-- | playlist.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/playlist.php b/playlist.php index 0522c20c..2b6dba05 100644 --- a/playlist.php +++ b/playlist.php @@ -43,7 +43,7 @@ switch ($_REQUEST['action']) { case 'add_dyn_song': /* Check Rights */ if (!$playlist->has_access()) { - access_denied(); + UI::access_denied(); break; } @@ -54,7 +54,7 @@ switch ($_REQUEST['action']) { case 'create_playlist': /* Check rights */ if (!Access::check('interface','25')) { - access_denied(); + UI::access_denied(); break; } @@ -67,12 +67,12 @@ switch ($_REQUEST['action']) { break; case 'delete_playlist': // If we made it here, we didn't have sufficient rights. - access_denied(); + UI::access_denied(); break; case 'remove_song': /* Check em for rights */ if (!$playlist->has_access()) { - access_denied(); + UI::access_denied(); break; } $playlist->remove_songs($_REQUEST['song']); @@ -119,7 +119,7 @@ switch ($_REQUEST['action']) { case 'set_track_numbers': /* Make sure they have permission */ if (!$playlist->has_access()) { - access_denied(); + UI::access_denied(); break; } $song_ids = scrub_in($_REQUEST['song']); @@ -135,7 +135,7 @@ switch ($_REQUEST['action']) { case 'prune_empty': /* Make sure they have permission */ if (!$GLOBALS['user']->has_access(100)) { - access_denied(); + UI::access_denied(); break; } @@ -150,7 +150,7 @@ switch ($_REQUEST['action']) { /* Make sure they have permission */ if (!$playlist->has_access()) { - access_denied(); + UI::access_denied(); break; } |