fix: role missing on edit
This commit is contained in:
parent
97458d315c
commit
16825e27f2
1 changed files with 1 additions and 1 deletions
|
|
@ -531,7 +531,7 @@ export class UserController extends Controller {
|
|||
|
||||
let userRole: string | undefined;
|
||||
|
||||
if (body.userRole) {
|
||||
if (body.userRole && user.userRole !== body.userRole) {
|
||||
let list = await listRole();
|
||||
|
||||
if (!Array.isArray(list)) throw new Error("Failed. Cannot get role(s) data from the server.");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue