Internal: Session: Fix visibility for past session with access by duration - refs BT#21745

pull/5576/head
Angel Fernando Quiroz Campos 2 years ago
parent d5ffe93c71
commit 91c8e4fe2c
  1. 2
      src/CoreBundle/Entity/Session.php

@ -1341,7 +1341,7 @@ class Session implements ResourceWithAccessUrlInterface, Stringable
$totalDuration = $firstAccess + $duration + $userDuration;
return $totalDuration > $currentTime ? self::AVAILABLE : self::READ_ONLY;
return $totalDuration > $currentTime ? self::AVAILABLE : $this->visibility;
}
return self::AVAILABLE;

Loading…
Cancel
Save