Abilities extended. Resources security improved
This commit is contained in:
parent
af82b6773b
commit
8c40aab120
16 changed files with 51 additions and 52 deletions
|
@ -4,13 +4,13 @@
|
|||
- if can? current_user, :write_wiki, @project
|
||||
= link_to history_project_wiki_path(@project, @wiki), :class => "btn small padded" do
|
||||
History
|
||||
= link_to edit_project_wiki_path(@project, @wiki), :class => "btn small" do
|
||||
Edit
|
||||
= link_to edit_project_wiki_path(@project, @wiki), :class => "btn small" do
|
||||
Edit
|
||||
%hr
|
||||
|
||||
= markdown_to_html @wiki.content
|
||||
|
||||
%p.time Last edited by #{@wiki.user.name}, in #{time_ago_in_words @wiki.created_at}
|
||||
- if can? current_user, :write_wiki, @project
|
||||
- if can? current_user, :admin_wiki, @project
|
||||
= link_to project_wiki_path(@project, @wiki), :confirm => "Are you sure you want to delete this page?", :method => :delete do
|
||||
Delete this page
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue