We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0f3867 commit ecc4847Copy full SHA for ecc4847
src/permissions/project.view.js
@@ -26,7 +26,7 @@ module.exports = freq => new Promise((resolve, reject) => {
26
27
// if user is co-pilot and the project doesn't have any copilots then
28
// user can access the project
29
- if (util.hasRole(req, USER_ROLE.COPILOT)) {
+ if (!hasAccess && util.hasRole(req, USER_ROLE.COPILOT)) {
30
return models.Project.getProjectIdsForCopilot(currentUserId)
31
.then((ids) => {
32
req.context.accessibleProjectIds = ids;
0 commit comments