test: skip sso-client delete in reset if not super admin user

This commit is contained in:
Pranav C
2024-02-07 12:26:50 +00:00
parent f90cf260e5
commit 61062517df

View File

@@ -210,7 +210,7 @@ async function localInit({
// console.log(process.env.TEST_WORKER_INDEX, process.env.TEST_PARALLEL_INDEX);
// delete sso-clients
if (isEE() && api['ssoClient']) {
if (isEE() && api['ssoClient'] && isSuperUser) {
const clients = await api.ssoClient.list();
for (const client of clients.list) {
try {