diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-01-16 02:59:34 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-01-16 02:59:34 +0000 |
commit | d76cefcf01ca215813eb5d4d7f118115aa0718a9 (patch) | |
tree | 75076d01fdaabbc5332f886a461cec21267949a4 /lib | |
parent | 0ab8de668c22f7989d4451b84c072524c7ab78de (diff) | |
download | ampache-d76cefcf01ca215813eb5d4d7f118115aa0718a9.tar.gz ampache-d76cefcf01ca215813eb5d4d7f118115aa0718a9.tar.bz2 ampache-d76cefcf01ca215813eb5d4d7f118115aa0718a9.zip |
fixed disabled songs mojo
Diffstat (limited to 'lib')
-rw-r--r-- | lib/class/song.class.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/class/song.class.php b/lib/class/song.class.php index 44e90096..b722670c 100644 --- a/lib/class/song.class.php +++ b/lib/class/song.class.php @@ -561,10 +561,11 @@ class Song { @discussion sets the enabled flag */ function update_enabled($new_enabled,$song_id=0) { + + /* This should really be integrated into the update_item thing */ + if (!$GLOBALS['user']->has_access(100)) { return false; } - if ($_SESSION['userdata']['access'] === 'admin' || $_SESSION['userdata']['access'] === '100') { - $this->update_item('enabled',$new_enabled,$song_id); - } + $this->update_item('enabled',$new_enabled,$song_id); } // update_enabled |