summaryrefslogtreecommitdiffstats
path: root/play/index.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2005-06-21 16:21:06 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2005-06-21 16:21:06 +0000
commit9e44a948cffd065904f02fad35e612a55ca477cd (patch)
tree153f8d121c68a435d63094b58b9c6716324dd86d /play/index.php
parenta9e19727860876a808dab51e6035e23a74a3c4ef (diff)
downloadampache-9e44a948cffd065904f02fad35e612a55ca477cd.tar.gz
ampache-9e44a948cffd065904f02fad35e612a55ca477cd.tar.bz2
ampache-9e44a948cffd065904f02fad35e612a55ca477cd.zip
fix stream code to not allow disabled users to stream
Diffstat (limited to 'play/index.php')
-rw-r--r--play/index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/play/index.php b/play/index.php
index 0091db10..9b3374c6 100644
--- a/play/index.php
+++ b/play/index.php
@@ -93,7 +93,7 @@ if ( isset( $uid ) ) {
if ($song->status === 'disabled') {
exit;
}
- if ($user->access === 'disabled') {
+ if ($user->disabled == '1') {
if (conf('debug')) {
log_event($user->username,' user_disabled ',"Error $user->username is currently disabled, stream access denied");
}