fix user
This commit is contained in:
parent
776da2b0e4
commit
5a4d4f9567
|
@ -575,6 +575,7 @@ export class UsersService {
|
||||||
if (status == 'approved') {
|
if (status == 'approved') {
|
||||||
if (supervisorUser.roles.name == 'Admin') {
|
if (supervisorUser.roles.name == 'Admin') {
|
||||||
dataUser.status_approval = 'Done';
|
dataUser.status_approval = 'Done';
|
||||||
|
dataUser.is_active = true;
|
||||||
}else {
|
}else {
|
||||||
dataUser.status_approval = supervisorUser.superior.id;
|
dataUser.status_approval = supervisorUser.superior.id;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user