Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not showing role correctly #48

Open
slorcadelgado opened this issue Oct 25, 2018 · 1 comment
Open

not showing role correctly #48

slorcadelgado opened this issue Oct 25, 2018 · 1 comment

Comments

@slorcadelgado
Copy link

slorcadelgado commented Oct 25, 2018

to fix this in "zkuser.php" change line 108:

$role = hexdec( substr($u[1], 4, 4) ).' ';

to:

$role = hexdec( substr($u[1], 6, 2) ).' ';

and "zktest.php" change lines 70-72:

if ($userdata[2] == LEVEL_ADMIN)
      $role = 'ADMIN';
elseif ($userdata[2] == LEVEL_USER)

to:

if ($userdata[4] == LEVEL_ADMIN)
       $role = 'ADMIN';
elseif ($userdata[4] == LEVEL_USER)

zk-attend.zip

@cdmarioe
Copy link

if ($userdata[2] == LEVEL_ADMIN)
$role = 'ADMIN';
elseif ($userdata[2] == LEVEL_USER)

Change

if ($userdata[1] == LEVEL_ADMIN)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants