Merge branch 'ent-13065-bug-permisos-apiv2' into 'develop'
Bug acl apiv2 pandora_enterprise#13065 See merge request artica/pandorafms!7021
This commit is contained in:
commit
f915be28d9
|
@ -37,6 +37,9 @@ final class UserTokenMiddleware
|
|||
);
|
||||
|
||||
$uuid = ($matches[0] ?? '');
|
||||
if (empty($uuid) === true) {
|
||||
return false;
|
||||
}
|
||||
$strToken = str_replace($uuid.'-', '', $authorization);
|
||||
$validTokenUiniqueServerIdentifier = $this->validateServerIdentifierTokenService->__invoke($strToken);
|
||||
if ($validTokenUiniqueServerIdentifier === false) {
|
||||
|
@ -55,7 +58,7 @@ final class UserTokenMiddleware
|
|||
$token = null;
|
||||
}
|
||||
|
||||
if ($token !== null) {
|
||||
if ($token !== null && $validToken) {
|
||||
if (session_status() === PHP_SESSION_NONE) {
|
||||
session_start();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue