fix(module_access): added Modules typing to the return value of the toKeysFromBoolean function
This commit is contained in:
parent
517598fec6
commit
fd120f9017
|
|
@ -27,7 +27,7 @@ export abstract class AbstractUserService {
|
|||
}
|
||||
|
||||
let module_access: Modules[] = [];
|
||||
if (user.user_module_access !== null) module_access = toKeysFromBoolean(user.user_module_access);
|
||||
if (user.user_module_access !== null) module_access = toKeysFromBoolean<Modules>(user.user_module_access);
|
||||
|
||||
const clean_user = {
|
||||
first_name: user.first_name,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user