Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
3ef98122
Commit
3ef98122
authored
Nov 18, 2021
by
Sean McGivern
Committed by
Alex Kalderimis
Dec 07, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use #ids method
parent
78d8041d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
app/models/active_session.rb
app/models/active_session.rb
+1
-1
No files found.
app/models/active_session.rb
View file @
3ef98122
...
...
@@ -266,7 +266,7 @@ class ActiveSession
# remove sessions if there are more than ALLOWED_NUMBER_OF_ACTIVE_SESSIONS.
destroyable_session_ids
=
sessions
.
drop
(
ALLOWED_NUMBER_OF_ACTIVE_SESSIONS
)
.
flat_map
{
|
session
|
[
session
.
session_id
,
session
.
session_private_id
].
compact
}
.
flat_map
(
&
:ids
)
destroy_sessions
(
redis
,
user
,
destroyable_session_ids
)
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment