Fix lint nits
This commit is contained in:
parent
2db1d998b7
commit
af666c7733
|
@ -84,7 +84,7 @@ class Ajax::ModerationController < AjaxController
|
|||
target_user = User.find_by_screen_name!(params[:user])
|
||||
|
||||
@response[:message] = t(".error")
|
||||
return unless %w(moderator administrator).include? params[:type].downcase
|
||||
return unless %w[moderator administrator].include? params[:type].downcase
|
||||
|
||||
unless current_user.has_cached_role?(:administrator)
|
||||
@response[:status] = :nopriv
|
||||
|
|
|
@ -3,7 +3,11 @@
|
|||
%li.list-group-item{ id: "privilege-#{privilege}" }
|
||||
.d-flex
|
||||
.flex-shrink-0
|
||||
%input{ type: :checkbox, name: "check-your-privileges", data: { type: privilege, user: user.screen_name }, checked: user.has_cached_role?(privilege.to_sym), autocomplete: :off }
|
||||
%input{ type: :checkbox,
|
||||
name: "check-your-privileges",
|
||||
data: { type: privilege, user: user.screen_name },
|
||||
checked: user.has_cached_role?(privilege.to_sym),
|
||||
autocomplete: :off }
|
||||
.flex-grow-1
|
||||
.list-group-item-heading= privilege.capitalize
|
||||
- unless description.blank?
|
||||
|
|
Loading…
Reference in New Issue