File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -99,14 +99,14 @@ const updateResourceSecurity = async (
9999} ;
100100
101101const forgeDatasetSecurityFromScenarioSecurity = ( scenarioSecurity ) => {
102- const getDatasetRoleFromScenarioRole = ( scenarioRole ) =>
103- scenarioRole === ACL_ROLES . SCENARIO . VALIDATOR ? ACL_ROLES . DATASET . EDITOR : scenarioRole ;
102+ const datasetDefault =
103+ scenarioSecurity . default !== ACL_ROLES . SCENARIO . NONE ? ACL_ROLES . DATASET . ADMIN : ACL_ROLES . DATASET . NONE ;
104104
105105 return {
106- default : getDatasetRoleFromScenarioRole ( scenarioSecurity . default ) ,
106+ default : datasetDefault ,
107107 accessControlList : scenarioSecurity . accessControlList . map ( ( aclEntry ) => ( {
108108 id : aclEntry . id ,
109- role : getDatasetRoleFromScenarioRole ( aclEntry . role ) ,
109+ role : ACL_ROLES . DATASET . ADMIN ,
110110 } ) ) ,
111111 } ;
112112} ;
You can’t perform that action at this time.
0 commit comments