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
7b9a27d2
Commit
7b9a27d2
authored
Nov 30, 2020
by
Gosia Ksionek
Committed by
Mayra Cabrera
Nov 30, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix wrong method in rake task
parent
4e09a04d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lib/tasks/gitlab/user_management.rake
lib/tasks/gitlab/user_management.rake
+2
-2
No files found.
lib/tasks/gitlab/user_management.rake
View file @
7b9a27d2
...
...
@@ -6,8 +6,8 @@ namespace :gitlab do
result
=
User
.
where
(
id:
group
.
direct_and_indirect_users_with_inactive
.
select
(
:id
)).
update_all
(
projects_limit:
0
,
can_create_group:
false
)
ids_count
=
group
.
direct_and_indirect_users_with_inactive
.
count
puts
"Done"
.
green
if
result
==
ids_count
puts
"Something went wrong"
.
red
if
result
!=
ids_count
puts
"Done"
.
color
(
:green
)
if
result
==
ids_count
puts
"Something went wrong"
.
color
(
:red
)
if
result
!=
ids_count
end
end
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