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
f50e0d4b
Commit
f50e0d4b
authored
Dec 02, 2016
by
Valery Sizov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve conflicts in app/models/protected_branch/push_access_level.rb
parent
40372d5c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
10 deletions
+0
-10
app/models/protected_branch/push_access_level.rb
app/models/protected_branch/push_access_level.rb
+0
-10
No files found.
app/models/protected_branch/push_access_level.rb
View file @
f50e0d4b
class
ProtectedBranch::PushAccessLevel
<
ActiveRecord
::
Base
include
ProtectedBranchAccess
<<<<<<<
HEAD
belongs_to
:protected_branch
belongs_to
:user
belongs_to
:group
delegate
:project
,
to: :protected_branch
=======
>>>>>>>
14046
b9c734e5e6506d63276f39f3f9d770c3699
validates
:access_level
,
presence:
true
,
inclusion:
{
in:
[
Gitlab
::
Access
::
MASTER
,
Gitlab
::
Access
::
DEVELOPER
,
Gitlab
::
Access
::
NO_ACCESS
]
}
...
...
@@ -27,12 +21,8 @@ class ProtectedBranch::PushAccessLevel < ActiveRecord::Base
def
check_access
(
user
)
return
false
if
access_level
==
Gitlab
::
Access
::
NO_ACCESS
<<<<<<<
HEAD
return
true
if
user
.
is_admin?
return
user
.
id
==
self
.
user_id
if
self
.
user
.
present?
return
group
.
users
.
exists?
(
user
.
id
)
if
self
.
group
.
present?
=======
>>>>>>>
14046
b9c734e5e6506d63276f39f3f9d770c3699
super
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