Security for online editor. Replace dev_access?, master_access? with can? method usage
This commit is contained in:
parent
5ec1ad8b23
commit
0189ee97ed
7 changed files with 56 additions and 18 deletions
|
@ -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?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue