BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
609bc0a0
Commit
609bc0a0
authored
Dec 08, 2016
by
Kamil Trzcinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check permission of details
parent
82ee1d29
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
common.rb
lib/gitlab/ci/status/build/common.rb
+2
-2
core.rb
lib/gitlab/ci/status/core.rb
+1
-1
common.rb
lib/gitlab/ci/status/pipeline/common.rb
+2
-2
common.rb
lib/gitlab/ci/status/stage/common.rb
+2
-2
No files found.
lib/gitlab/ci/status/build/common.rb
View file @
609bc0a0
...
...
@@ -3,8 +3,8 @@ module Gitlab
module
Status
module
Build
module
Common
def
has_details?
true
def
has_details?
(
current_user
)
can?
(
current_user
,
:read_build
,
subject
)
end
def
details_path
...
...
lib/gitlab/ci/status/core.rb
View file @
609bc0a0
...
...
@@ -33,7 +33,7 @@ module Gitlab
self
.
class
.
name
.
demodulize
.
downcase
.
underscore
end
def
has_details?
def
has_details?
(
_user
=
nil
)
false
end
...
...
lib/gitlab/ci/status/pipeline/common.rb
View file @
609bc0a0
...
...
@@ -3,8 +3,8 @@ module Gitlab
module
Status
module
Pipeline
module
Common
def
has_details?
true
def
has_details?
(
current_user
)
can?
(
current_user
,
:read_pipeline
,
subject
)
end
def
details_path
...
...
lib/gitlab/ci/status/stage/common.rb
View file @
609bc0a0
...
...
@@ -3,8 +3,8 @@ module Gitlab
module
Status
module
Stage
module
Common
def
has_details?
true
def
has_details?
(
current_user
)
can?
(
current_user
,
:read_pipeline
,
subject
)
end
def
details_path
...
...
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