Commit 2316d608 authored by Varunkumar Manohar's avatar Varunkumar Manohar
Browse files

Merge branch 'e2etimeout' into 'master'

Remove E2E tests from foundations for dataset level access task + Allow only tenant admins to delete the subproject

See merge request !117
parents a69a7011 708f2780
Pipeline #48005 passed with stages
in 10 minutes and 1 second
......@@ -218,9 +218,10 @@ export class SubProjectHandler {
// get the subproject metadata
const subproject = await SubProjectDAO.get(journalClient,, req.params.subprojectid);
//Only tenant admins are allowed to delete the subproject
if (FeatureFlags.isEnabled(Feature.AUTHORIZATION)) {
// check if user is member of any of the subproject acl admin groups
await Auth.isUserAuthorized(req.headers.authorization, subproject.acls.admins,
await Auth.isUserAuthorized(
req.headers.authorization, [AuthGroups.datalakeUserAdminGroupEmail(tenant.esd)],
tenant.esd, req[Config.DE_FORWARD_APPKEY]);
This diff is collapsed.
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