mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-03-20 02:50:01 +01:00
the copy paste is strong
This commit is contained in:
parent
becfced2d9
commit
8cbd85a89c
1 changed files with 13 additions and 12 deletions
|
@ -182,11 +182,12 @@ class Ajax::ModerationController < ApplicationController
|
|||
when 'translator'
|
||||
target_user.translator = status
|
||||
when 'supporter'
|
||||
target_user.translator = status
|
||||
target_user.supporter = status
|
||||
when 'moderator'
|
||||
target_user.translator = status
|
||||
target_user.moderator = status
|
||||
when 'admin'
|
||||
target_user.translator = status
|
||||
target_user.admin = status
|
||||
end
|
||||
target_user.save!
|
||||
|
||||
@message = I18n.t('messages.moderation.privilege.checked', privilege: params[:type])
|
||||
|
|
Loading…
Reference in a new issue