Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorrandx <dmitriy.zaporozhets@gmail.com>2012-10-21 13:12:14 +0400
committerrandx <dmitriy.zaporozhets@gmail.com>2012-10-21 13:12:14 +0400
commit0189ee97ed34b74cf0f500d678d4435b17ab6a85 (patch)
treeed77bf88303ef286cc5123d2b75899e559e3a69d /app/views
parent5ec1ad8b2375bdce7a820df1be3dc67b18ad2bd0 (diff)
Security for online editor. Replace dev_access?, master_access? with can? method usage
Diffstat (limited to 'app/views')
-rw-r--r--app/views/tree/_blob_actions.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/tree/_blob_actions.html.haml b/app/views/tree/_blob_actions.html.haml
index d51f7205ef6..21334ea1f16 100644
--- a/app/views/tree/_blob_actions.html.haml
+++ b/app/views/tree/_blob_actions.html.haml
@@ -1,7 +1,7 @@
.btn-group.tree-btn-group
-# only show edit link for text files
- if @tree.text?
- = link_to "edit", edit_project_tree_path(@project, @id), class: "btn very_small"
+ = link_to "edit", edit_project_tree_path(@project, @id), class: "btn very_small", disabled: !allowed_tree_edit?
= link_to "raw", project_blob_path(@project, @id), class: "btn very_small", target: "_blank"
-# only show normal/blame view links for text files
- if @tree.text?