mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-05 19:41:55 +02:00
Fixed error when checking user permissions for preferences
This commit is contained in:
parent
cbda7ff555
commit
ecdb3dab03
1 changed files with 1 additions and 0 deletions
|
@ -115,6 +115,7 @@ class Preference {
|
|||
|
||||
$sql = "SELECT `level` FROM `preference` WHERE `name`='$preference'";
|
||||
$db_results = Dba::query($sql);
|
||||
$data = Dba::fetch_assoc($db_results);
|
||||
|
||||
if ($GLOBALS['user']->has_access($data['level'])) {
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue