fixes #1698
This commit is contained in:
@@ -2,11 +2,13 @@
|
|||||||
<%= error_messages_for("wiki_page") %>
|
<%= error_messages_for("wiki_page") %>
|
||||||
|
|
||||||
<%= simple_form_for(@wiki_page) do |f| %>
|
<%= simple_form_for(@wiki_page) do |f| %>
|
||||||
<%= f.input :title, :as => :string %>
|
<% if !@wiki_page.new_record? && CurrentUser.user.is_builder? %>
|
||||||
|
<%= f.input :title, :as => :string %>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
<%= dtext_field "wiki_page", "body" %>
|
<%= dtext_field "wiki_page", "body" %>
|
||||||
|
|
||||||
<% if CurrentUser.is_janitor? %>
|
<% if CurrentUser.user.is_janitor? %>
|
||||||
<%= f.input :is_locked %>
|
<%= f.input :is_locked %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user