users: remove no_flagging and no_feedback permissions.

This commit is contained in:
evazion
2019-12-24 10:24:15 -06:00
parent 939c168fe9
commit 7694be9cb3
8 changed files with 5 additions and 82 deletions

View File

@@ -6,8 +6,6 @@
<%= f.input :level, collection: User.level_hash.to_a, selected: @user.level %>
<%= f.input :can_upload_free, label: "Unrestricted Uploads", as: :boolean, selected: @user.can_upload_free %>
<%= f.input :can_approve_posts, label: "Approve Posts", as: :boolean, selected: @user.can_approve_posts %>
<%= f.input :no_flagging, label: "Banned From Flagging", as: :boolean, selected: @user.no_flagging %>
<%= f.input :no_feedback, label: "Banned From Giving Feedback", as: :boolean, selected: @user.no_feedback %>
<%= f.submit "Update" %>
<% end %>
</div>

View File

@@ -34,12 +34,10 @@
<% if post.is_status_locked? %>
<li id="post-option-status-locked">Status locked</li>
<% else %>
<% unless CurrentUser.no_flagging? %>
<% if !post.is_deleted? && !post.is_pending? && !post.is_flagged? %>
<li id="post-option-flag"><%= link_to "Flag", new_post_flag_path(post_flag: { post_id: post.id }), remote: true %></li>
<% elsif post.is_flagged? || post.is_deleted? %>
<li id="post-option-appeal"><%= link_to "Appeal", new_post_appeal_path(post_appeal: { post_id: post.id }), remote: true %></li>
<% end %>
<% if !post.is_deleted? && !post.is_pending? && !post.is_flagged? %>
<li id="post-option-flag"><%= link_to "Flag", new_post_flag_path(post_flag: { post_id: post.id }), remote: true %></li>
<% elsif post.is_flagged? || post.is_deleted? %>
<li id="post-option-appeal"><%= link_to "Appeal", new_post_appeal_path(post_appeal: { post_id: post.id }), remote: true %></li>
<% end %>
<% if CurrentUser.can_approve_posts? %>