Abilities extended. Resources security improved
This commit is contained in:
parent
af82b6773b
commit
8c40aab120
16 changed files with 51 additions and 52 deletions
|
@ -4,8 +4,9 @@
|
|||
Project
|
||||
|
||||
- if @project.repo_exists?
|
||||
= link_to "Files", tree_project_ref_path(@project, @project.root_ref), :class => tree_tab_class
|
||||
= link_to "Commits", project_commits_path(@project), :class => commit_tab_class
|
||||
- if can? current_user, :download_code, @project
|
||||
= link_to "Files", tree_project_ref_path(@project, @project.root_ref), :class => tree_tab_class
|
||||
= link_to "Commits", project_commits_path(@project), :class => commit_tab_class
|
||||
|
||||
= link_to "Network", graph_project_path(@project), :class => current_page?(:controller => "projects", :action => "graph", :id => @project) ? "current" : nil
|
||||
- if @project.issues_enabled
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue