function actionRequiresApproval ({ action, permissions, study, user }) {
  const datasetId = getStudyId(study);

  return isUserApprovedForAction(
    permissions,
    datasetId,
    action
  ) === false;
}
// we will request the user to request approval if explicit approval needed (guest or not)
we will request the user to request approval if explicit approval needed (guest or not)
we will request the user to request approval if explicit approval needed ( guest or not )
function actionRequiresApproval ({ action, permissions, study, user }) {
  const datasetId = getStudyId(study);
  return isUserApprovedForAction(
    permissions,
    datasetId,
    action
  ) === false;
}
function actionRequiresApproval ( { action , permissions , study , user } ) { const datasetId = getStudyId ( study ) ; return isUserApprovedForAction ( permissions , datasetId , action ) === false ; }
we will request the user to request approval if explicit approval needed (guest or not)
we will request the user to request approval if explicit approval needed ( guest or not )