Fix ismanagerof API not detecting "uid" flag properly
This commit is contained in:
parent
87c01fe2ce
commit
f4ab62c4ff
2
api.php
2
api.php
@ -160,7 +160,7 @@ switch ($VARS['action']) {
|
||||
}
|
||||
break;
|
||||
case "ismanagerof":
|
||||
if ($VARS['uid'] === 1) {
|
||||
if ($VARS['uid'] == "1") {
|
||||
if ($database->has("accounts", ['uid' => $VARS['manager']])) {
|
||||
if ($database->has("accounts", ['uid' => $VARS['employee']])) {
|
||||
$managerid = $VARS['manager'];
|
||||
|
Loading…
x
Reference in New Issue
Block a user