mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-03 09:49:30 +02:00
fix stream code to not allow disabled users to stream
This commit is contained in:
parent
a9e1972786
commit
9e44a948cf
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ if ( isset( $uid ) ) {
|
||||||
if ($song->status === 'disabled') {
|
if ($song->status === 'disabled') {
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
if ($user->access === 'disabled') {
|
if ($user->disabled == '1') {
|
||||||
if (conf('debug')) {
|
if (conf('debug')) {
|
||||||
log_event($user->username,' user_disabled ',"Error $user->username is currently disabled, stream access denied");
|
log_event($user->username,' user_disabled ',"Error $user->username is currently disabled, stream access denied");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue