diff options
author | randx <dmitriy.zaporozhets@gmail.com> | 2012-10-21 13:12:14 +0400 |
---|---|---|
committer | randx <dmitriy.zaporozhets@gmail.com> | 2012-10-21 13:12:14 +0400 |
commit | 0189ee97ed34b74cf0f500d678d4435b17ab6a85 (patch) | |
tree | ed77bf88303ef286cc5123d2b75899e559e3a69d /app/views | |
parent | 5ec1ad8b2375bdce7a820df1be3dc67b18ad2bd0 (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.haml | 2 |
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? |