summaryrefslogtreecommitdiffstats
path: root/artists.php
diff options
context:
space:
mode:
authorPaul Arthur <paul.arthur@flowerysong.com>2013-01-26 00:57:06 -0500
committerPaul Arthur <paul.arthur@flowerysong.com>2013-01-26 00:57:40 -0500
commit42133f38d223a2b3b81d309f2d1a983ef2012485 (patch)
treea9a01095cbb54474e83f8ec220a15991542819e1 /artists.php
parent5f02e4f43cb1423653c156e612da53e4c5938583 (diff)
downloadampache-42133f38d223a2b3b81d309f2d1a983ef2012485.tar.gz
ampache-42133f38d223a2b3b81d309f2d1a983ef2012485.tar.bz2
ampache-42133f38d223a2b3b81d309f2d1a983ef2012485.zip
Move access_denied() from lib/ui.lib.php to UI
Diffstat (limited to 'artists.php')
-rw-r--r--artists.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/artists.php b/artists.php
index 743e1ae1..880dc485 100644
--- a/artists.php
+++ b/artists.php
@@ -57,7 +57,7 @@ switch($_REQUEST['action']) {
require_once Config::get('prefix') . '/templates/show_update_items.inc.php';
break;
case 'rename_similar':
- if (!$user->has_access('100')) { access_denied(); }
+ if (!$user->has_access('100')) { UI::access_denied(); }
$count = 0;
if (isset($_REQUEST['artist']) && is_numeric($_REQUEST['artist']) && isset($_REQUEST['artists']) && is_array($_REQUEST['artists'])) {
$artist = new Artist($_REQUEST['artist']);
@@ -92,7 +92,7 @@ switch($_REQUEST['action']) {
break;
case 'show_similar':
if (!$GLOBALS['user']->has_access('75')) {
- access_denied();
+ UI::access_denied();
exit;
}
@@ -114,7 +114,7 @@ switch($_REQUEST['action']) {
break;
case 'rename':
//die if not enough permissions
- if (!$user->has_access('100')) { access_denied(); }
+ if (!$user->has_access('100')) { UI::access_denied(); }
/* Get the artist */
$artist = new Artist($_REQUEST['artist']);