Commit f6771ab9 authored by Varunkumar Manohar's avatar Varunkumar Manohar
Browse files

fix: add slbclient substrings for delfiserviceaccounts

parent 2e6164ec
Pipeline #74687 failed with stages
in 10 minutes and 24 seconds
......@@ -279,6 +279,14 @@ export class UserHandler {
const admins = new Set();
const viewers = new Set();
const regexForSvcAccount = /^[a-z0-9]*@delfiserviceaccount.com$/g;
const svcAccountMatch = regexForSvcAccount.test(userEmail);
if (svcAccountMatch) {
const splitList = userEmail.split('@');
userEmail = [splitList[0], '.slbclient.com', '@delfiserviceaccount.com'].join('');
}
userListInAuthGroups.map(lst => {
for (const ele of lst) {
if (ele === 'admin' || ele === 'editor') {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment