Skip to content
Permalink
Browse files

fixed previous commit for updating login date; fixes #337

  • Loading branch information...
following5 committed Jul 28, 2015
1 parent c39cb39 commit 0dcf3384d34961ed1c80d75f2e4f751e3dc69d45
Showing with 1 addition and 1 deletion.
  1. +1 −1 okapi/service_runner.php
@@ -134,7 +134,7 @@ public static function call($service_name, OkapiRequest $request)
require_once($GLOBALS['rootpath']."okapi/$service_name.php");
$response = call_user_func(array('\\okapi\\'.
str_replace('/', '\\', $service_name).'\\WebService', 'call'), $request);
if ($options['min_auth_level'] >= 3)
if ($options['min_auth_level'] >= 3 && $request->token->token_type == "access")
{
Db::execute("
update user set last_login=now()

0 comments on commit 0dcf338

Please sign in to comment.
You can’t perform that action at this time.