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
dafeab1a
Commit
dafeab1a
authored
Jan 12, 2018
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Override for add_users and add_user
parent
443a7dc9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
ee/app/models/ee/project_team.rb
ee/app/models/ee/project_team.rb
+3
-2
No files found.
ee/app/models/ee/project_team.rb
View file @
dafeab1a
module
EE
module
EE
module
ProjectTeam
module
ProjectTeam
extend
ActiveSupport
::
Concern
extend
ActiveSupport
::
Concern
extend
::
Gitlab
::
Utils
::
Override
override
:add_users
def
add_users
(
users
,
access_level
,
current_user:
nil
,
expires_at:
nil
)
def
add_users
(
users
,
access_level
,
current_user:
nil
,
expires_at:
nil
)
raise
NotImplementedError
unless
defined?
(
super
)
return
false
if
group_member_lock
return
false
if
group_member_lock
super
super
end
end
override
:add_user
def
add_user
(
user
,
access_level
,
current_user:
nil
,
expires_at:
nil
)
def
add_user
(
user
,
access_level
,
current_user:
nil
,
expires_at:
nil
)
raise
NotImplementedError
unless
defined?
(
super
)
return
false
if
group_member_lock
return
false
if
group_member_lock
super
super
...
...
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