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
0
Merge Requests
0
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
Tatuya Kamada
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
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
lib/gitlab/ci/status/build/common.rb
lib/gitlab/ci/status/build/common.rb
+2
-2
lib/gitlab/ci/status/core.rb
lib/gitlab/ci/status/core.rb
+1
-1
lib/gitlab/ci/status/pipeline/common.rb
lib/gitlab/ci/status/pipeline/common.rb
+2
-2
lib/gitlab/ci/status/stage/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