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
2a7c1579
Commit
2a7c1579
authored
Jan 30, 2019
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add blank lines to be aligning with CE
parent
6c542689
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
app/models/protected_branch.rb
app/models/protected_branch.rb
+1
-0
app/models/protected_tag.rb
app/models/protected_tag.rb
+1
-0
No files found.
app/models/protected_branch.rb
View file @
2a7c1579
...
...
@@ -2,6 +2,7 @@
class
ProtectedBranch
<
ActiveRecord
::
Base
include
ProtectedRef
protected_ref_access_levels
:merge
,
:push
def
self
.
protected_ref_accessible_to?
(
ref
,
user
,
project
:,
action
:,
protected_refs:
nil
)
...
...
app/models/protected_tag.rb
View file @
2a7c1579
...
...
@@ -2,6 +2,7 @@
class
ProtectedTag
<
ActiveRecord
::
Base
include
ProtectedRef
validates
:name
,
uniqueness:
{
scope: :project_id
}
protected_ref_access_levels
:create
...
...
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