Fix #3842: Mods can demote other mods or admins.

This commit is contained in:
evazion
2018-08-25 13:52:50 -05:00
parent 0bb787d987
commit 3dafca9aec
7 changed files with 1 additions and 111 deletions

View File

@@ -1,17 +0,0 @@
<div id="c-moderator-invitations">
<div id="a-index">
<h1>Invitations</h1>
<ul>
<% @users.each do |user| %>
<li><%= link_to_user user %></li>
<% end %>
</ul>
<%= numbered_paginator(@users) %>
</div>
</div>
<% content_for(:page_title) do %>
Invitations - <%= Danbooru.config.app_name %>
<% end %>

View File

@@ -1,28 +0,0 @@
<div id="c-moderator-invitations">
<div id="a-new">
<h1>New Invitation</h1>
<%= form_tag(moderator_invitations_path, :class => "simple_form") do %>
<div class="input">
<label>User</label>
<%= text_field :invitation, :user_name, :value => params[:invitation][:name] %>
</div>
<div class="input">
<label>Level</label>
<%= level_select %>
</div>
<div class="input">
<label>Unrestricted Uploads</label>
<%= check_box :invitation, :can_upload_free %>
</div>
<%= submit_tag %>
<% end %>
</div>
</div>
<% content_for(:page_title) do %>
New Invitation - <%= Danbooru.config.app_name %>
<% end %>