Merge pull request #5306 from nonamethanks/new-roles

Users: add Contributor and Approver user levels
This commit is contained in:
evazion
2022-10-30 03:27:18 -05:00
committed by GitHub
29 changed files with 105 additions and 251 deletions

View File

@@ -16,7 +16,7 @@
<%= embed_wiki("help:upload_notice", id: "upload-guide-notice") %>
<% unless CurrentUser.can_upload_free? %>
<% unless CurrentUser.is_contributor? %>
<p id="upload-limit">Upload Limit: <%= render "users/upload_limit", user: CurrentUser.user %></p>
<% end %>
@@ -89,7 +89,7 @@
<%= f.submit "Post" %>
<% if CurrentUser.can_upload_free? %>
<% if CurrentUser.is_contributor? %>
<%= f.input :is_pending, as: :boolean, label: "Upload for approval", wrapper_html: { class: "inline-block" }, input_html: { checked: post.is_pending? } %>
<% end %>