|
|
@ -11,7 +11,7 @@ class Admins::UpdateUserService < ApplicationService
|
|
|
|
def call
|
|
|
|
def call
|
|
|
|
user.assign_attributes(user_attributes)
|
|
|
|
user.assign_attributes(user_attributes)
|
|
|
|
user.firstname = ''
|
|
|
|
user.firstname = ''
|
|
|
|
user.password = password if params[:password].present?
|
|
|
|
user.password = params[:password] if params[:password].present?
|
|
|
|
|
|
|
|
|
|
|
|
if params[:identity].to_s == 'student'
|
|
|
|
if params[:identity].to_s == 'student'
|
|
|
|
params[:technical_title] = nil
|
|
|
|
params[:technical_title] = nil
|
|
|
|