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
03dcd931
Commit
03dcd931
authored
Aug 16, 2021
by
Doug Stull
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Accept the rubocop exceptions on member creation
- this is the most desired way right now
parent
d584477d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
app/models/group.rb
app/models/group.rb
+2
-2
app/models/members/project_member.rb
app/models/members/project_member.rb
+1
-1
app/models/project_team.rb
app/models/project_team.rb
+2
-2
No files found.
app/models/group.rb
View file @
03dcd931
...
...
@@ -296,7 +296,7 @@ class Group < Namespace
end
def
add_users
(
users
,
access_level
,
current_user:
nil
,
expires_at:
nil
)
Members
::
Groups
::
CreatorService
.
add_users
(
# rubocop:
todo
CodeReuse/ServiceClass
Members
::
Groups
::
CreatorService
.
add_users
(
# rubocop:
disable
CodeReuse/ServiceClass
self
,
users
,
access_level
,
...
...
@@ -306,7 +306,7 @@ class Group < Namespace
end
def
add_user
(
user
,
access_level
,
current_user:
nil
,
expires_at:
nil
,
ldap:
false
)
Members
::
Groups
::
CreatorService
.
new
(
self
,
# rubocop:
todo
CodeReuse/ServiceClass
Members
::
Groups
::
CreatorService
.
new
(
self
,
# rubocop:
disable
CodeReuse/ServiceClass
user
,
access_level
,
current_user:
current_user
,
...
...
app/models/members/project_member.rb
View file @
03dcd931
...
...
@@ -44,7 +44,7 @@ class ProjectMember < Member
project_ids
.
each
do
|
project_id
|
project
=
Project
.
find
(
project_id
)
Members
::
Projects
::
CreatorService
.
add_users
(
# rubocop:
todo
CodeReuse/ServiceClass
Members
::
Projects
::
CreatorService
.
add_users
(
# rubocop:
disable
CodeReuse/ServiceClass
project
,
users
,
access_level
,
...
...
app/models/project_team.rb
View file @
03dcd931
...
...
@@ -42,7 +42,7 @@ class ProjectTeam
end
def
add_users
(
users
,
access_level
,
current_user:
nil
,
expires_at:
nil
)
Members
::
Projects
::
CreatorService
.
add_users
(
# rubocop:
todo
CodeReuse/ServiceClass
Members
::
Projects
::
CreatorService
.
add_users
(
# rubocop:
disable
CodeReuse/ServiceClass
project
,
users
,
access_level
,
...
...
@@ -52,7 +52,7 @@ class ProjectTeam
end
def
add_user
(
user
,
access_level
,
current_user:
nil
,
expires_at:
nil
)
Members
::
Projects
::
CreatorService
.
new
(
project
,
# rubocop:
todo
CodeReuse/ServiceClass
Members
::
Projects
::
CreatorService
.
new
(
project
,
# rubocop:
disable
CodeReuse/ServiceClass
user
,
access_level
,
current_user:
current_user
,
...
...
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