Skip to content

Commit 70d7100

Browse files
committed
Session: #fix session per duration visibility management for user_portal page - refs BT#22691
1 parent a02c1cd commit 70d7100

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/inc/lib/api.lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2959,7 +2959,7 @@ function api_get_session_visibility(
29592959

29602960
$totalDuration = $firstAccess + $duration + $userDuration;
29612961

2962-
return $totalDuration > $currentTime ? SESSION_AVAILABLE : SESSION_VISIBLE_READ_ONLY;
2962+
return $totalDuration > $currentTime ? SESSION_AVAILABLE : $visibility;
29632963
}
29642964

29652965
return SESSION_AVAILABLE;

0 commit comments

Comments
 (0)