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 /albums.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 'albums.php')
-rw-r--r-- | albums.php | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -27,7 +27,7 @@ require_once Config::get('prefix') . '/templates/header.inc.php'; /* Switch on Action */ switch ($_REQUEST['action']) { case 'clear_art': - if (!$GLOBALS['user']->has_access('75')) { access_denied(); } + if (!$GLOBALS['user']->has_access('75')) { UI::access_denied(); } $art = new Art($_GET['album_id'],'album'); $art->reset(); show_confirmation(T_('Album Art Cleared'), T_('Album Art information has been removed from the database'),"/albums.php?action=show&album=" . $art->uid); @@ -60,7 +60,7 @@ switch ($_REQUEST['action']) { break; case 'find_art': // If not a user then kick em out - if (!Access::check('interface','25')) { access_denied(); exit; } + if (!Access::check('interface','25')) { UI::access_denied(); exit; } // get the Album information $album = new Album($_GET['album_id']); @@ -157,7 +157,7 @@ switch ($_REQUEST['action']) { case 'update_from_tags': // Make sure they are a 'power' user at least if (!Access::check('interface','75')) { - access_denied(); + UI::access_denied(); exit; } |