- fixed appearance of 'director' role and users;

This commit is contained in:
Vitalii Kiiko
2026-02-12 09:43:21 +01:00
parent 723c104b97
commit bb1969b4ea
2 changed files with 2 additions and 2 deletions

View File

@@ -57,7 +57,7 @@ const AllUsersTable = ({ updaterString = '' }) => {
const getFormattedData = (data) => { const getFormattedData = (data) => {
return data return data
.filter(o => [ .filter(o => [
'ROLE_SUPER_ADMIN', 'ROLE_PRE_INSTRUCTOR', 'ROLE_INSTRUCTOR_MANAGER', 'ROLE_CONFIDI' 'ROLE_SUPER_ADMIN', 'ROLE_PRE_INSTRUCTOR', 'ROLE_INSTRUCTOR_MANAGER', 'ROLE_CONFIDI', 'ROLE_DIRECTOR'
].includes(o.role.roleType)) ].includes(o.role.roleType))
.map(o => ({...o, roleName: o.role.roleName})); .map(o => ({...o, roleName: o.role.roleName}));
}; };

View File

@@ -145,7 +145,7 @@ const Users = () => {
if (data.status === 'SUCCESS') { if (data.status === 'SUCCESS') {
const roles = data.data const roles = data.data
.filter(o => [ .filter(o => [
'ROLE_SUPER_ADMIN', 'ROLE_PRE_INSTRUCTOR', 'ROLE_INSTRUCTOR_MANAGER', 'ROLE_CONFIDI' 'ROLE_SUPER_ADMIN', 'ROLE_PRE_INSTRUCTOR', 'ROLE_INSTRUCTOR_MANAGER', 'ROLE_CONFIDI', 'ROLE_DIRECTOR'
].includes(o.roleType)) ].includes(o.roleType))
.map(o => ({ .map(o => ({
name: o.roleName, name: o.roleName,