diff --git a/packages/components-faraday/src/components/Dashboard/DashboardCard.js b/packages/components-faraday/src/components/Dashboard/DashboardCard.js index b3e877877e64a2776973abf0287a77f8f588c9b4..2d6ec271f17846f5956c043627d6a5302b8235cf 100644 --- a/packages/components-faraday/src/components/Dashboard/DashboardCard.js +++ b/packages/components-faraday/src/components/Dashboard/DashboardCard.js @@ -120,19 +120,17 @@ const DashboardCard = ({ {manuscriptMeta} </ManuscriptType> {project.status && project.status !== 'draft' ? ( - submittedDate && ( - <Details - data-test="button-details" - onClick={() => - history.push( - `/projects/${project.id}/versions/${version.id}/details`, - ) - } - > - Details - <Icon primary>chevron-right</Icon> - </Details> - ) + <Details + data-test="button-details" + onClick={() => + history.push( + `/projects/${project.id}/versions/${version.id}/details`, + ) + } + > + Details + <Icon primary>chevron-right</Icon> + </Details> ) : ( <DeleteManuscript deleteProject={() => deleteProject(project)} diff --git a/packages/xpub-faraday/config/authsome-mode.js b/packages/xpub-faraday/config/authsome-mode.js index f70b0fe9d49ca6152d55cb8058aa07d708f77295..6e316e439fd9afe73d8540d6d822ccc5345de0eb 100644 --- a/packages/xpub-faraday/config/authsome-mode.js +++ b/packages/xpub-faraday/config/authsome-mode.js @@ -97,9 +97,9 @@ async function applyAuthenticatedUserPolicy(user, operation, object, context) { Team: context.models.Team, }) - if (collection.owners.map(o => o.id).includes(user.id)) { - return collection - } + // if (collection.owners.map(o => o.id).includes(user.id)) { + // return collection + // } // TODO: check why collPermission can be undefined const collPermission = userPermissions.find( p =>