mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-27 07:44:35 +02:00
Bug acl apiv2 pandora_enterprise#13065
This commit is contained in:
parent
a5491383cf
commit
ae1f586971
@ -37,6 +37,9 @@ final class UserTokenMiddleware
|
|||||||
);
|
);
|
||||||
|
|
||||||
$uuid = ($matches[0] ?? '');
|
$uuid = ($matches[0] ?? '');
|
||||||
|
if (empty($uuid) === true) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
$strToken = str_replace($uuid.'-', '', $authorization);
|
$strToken = str_replace($uuid.'-', '', $authorization);
|
||||||
$validTokenUiniqueServerIdentifier = $this->validateServerIdentifierTokenService->__invoke($strToken);
|
$validTokenUiniqueServerIdentifier = $this->validateServerIdentifierTokenService->__invoke($strToken);
|
||||||
if ($validTokenUiniqueServerIdentifier === false) {
|
if ($validTokenUiniqueServerIdentifier === false) {
|
||||||
@ -55,7 +58,7 @@ final class UserTokenMiddleware
|
|||||||
$token = null;
|
$token = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($token !== null) {
|
if ($token !== null && $validToken) {
|
||||||
if (session_status() === PHP_SESSION_NONE) {
|
if (session_status() === PHP_SESSION_NONE) {
|
||||||
session_start();
|
session_start();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user