Commit 8a7faca5 authored by Varunkumar Manohar's avatar Varunkumar Manohar
Browse files

Merge branch 'slb/vm/updatesvcgroups' into 'master'

Add viewer groups to the subproject service groups list if present

See merge request !101
parents d013f831 949d7b4c
Pipeline #44198 passed with stages
in 10 minutes and 21 seconds
......@@ -83,7 +83,11 @@ export class UserHandler {
const subproject = await SubProjectDAO.get(journalClient,, sdPath.subproject, spkey);
const serviceGroupRegex = SubprojectGroups.serviceGroupNameRegExp(,;
const subprojectServiceGroups = subproject.acls.admins.filter((group) => group.match(serviceGroupRegex));
const subprojectAdminServiceGroups = subproject.acls.admins
.filter((group) => group.match(serviceGroupRegex));
const subprojectViewerServiceGroups = subproject.acls.viewers
.filter((group) => group.match(serviceGroupRegex));
const subprojectServiceGroups = subprojectAdminServiceGroups.concat(subprojectViewerServiceGroups);
const dataGroupRegex = SubprojectGroups.dataGroupNameRegExp(,;
const adminSubprojectDataGroups = subproject.acls.admins.filter((group) => group.match(dataGroupRegex));
Markdown is supported
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