diff --git a/client/src/app/pages/applications/applications-table/applications-table.tsx b/client/src/app/pages/applications/applications-table/applications-table.tsx index ed93b6b30..2189169a0 100644 --- a/client/src/app/pages/applications/applications-table/applications-table.tsx +++ b/client/src/app/pages/applications/applications-table/applications-table.tsx @@ -58,8 +58,16 @@ import keycloak from "@app/keycloak"; import { RBAC, RBAC_TYPE, + analysisReadScopes, + analysisWriteScopes, applicationsWriteScopes, + assessmentReadScopes, + assessmentWriteScopes, + credentialsWriteScopes, + dependenciesWriteScopes, importsWriteScopes, + reviewsReadScopes, + reviewsWriteScopes, tasksReadScopes, tasksWriteScopes, } from "@app/rbac"; @@ -542,8 +550,16 @@ export const ApplicationsTable: React.FC = () => { const userScopes: string[] = token?.scope.split(" ") || [], importWriteAccess = checkAccess(userScopes, importsWriteScopes), applicationWriteAccess = checkAccess(userScopes, applicationsWriteScopes), + assessmentWriteAccess = checkAccess(userScopes, assessmentWriteScopes), + analysisWriteAccess = checkAccess(userScopes, analysisWriteScopes), + assessmentReadAccess = checkAccess(userScopes, assessmentReadScopes), + credentialsWriteAccess = checkAccess(userScopes, credentialsWriteScopes), + dependenciesWriteAccess = checkAccess(userScopes, dependenciesWriteScopes), + analysisReadAccess = checkAccess(userScopes, analysisReadScopes), tasksReadAccess = checkAccess(userScopes, tasksReadScopes), - tasksWriteAccess = checkAccess(userScopes, tasksWriteScopes); + tasksWriteAccess = checkAccess(userScopes, tasksWriteScopes), + reviewsWriteAccess = checkAccess(userScopes, reviewsWriteScopes), + reviewsReadAccess = checkAccess(userScopes, reviewsReadScopes); const areAppsInWaves = selectedRows.some( (application) => application.migrationWave !== null @@ -973,27 +989,41 @@ export const ApplicationsTable: React.FC = () => { > {application?.effort ?? "-"} + -