Skip to content

Commit 0dcf338

Browse files
committed
fixed previous commit for updating login date; fixes #337
1 parent c39cb39 commit 0dcf338

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

okapi/service_runner.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ public static function call($service_name, OkapiRequest $request)
134134
require_once($GLOBALS['rootpath']."okapi/$service_name.php");
135135
$response = call_user_func(array('\\okapi\\'.
136136
str_replace('/', '\\', $service_name).'\\WebService', 'call'), $request);
137-
if ($options['min_auth_level'] >= 3)
137+
if ($options['min_auth_level'] >= 3 && $request->token->token_type == "access")
138138
{
139139
Db::execute("
140140
update user set last_login=now()

0 commit comments

Comments
 (0)