Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken project/:id #158

Closed
cubap opened this issue Nov 15, 2024 · 1 comment
Closed

Broken project/:id #158

cubap opened this issue Nov 15, 2024 · 1 comment
Assignees

Comments

@cubap
Copy link
Member

cubap commented Nov 15, 2024

The query for project

"$match": {
          "$or": [
            { "userRoles": { "$in": ['*_*_*', 'READ_*_*', 'READ_*_PROJECT'] } },
            { "creator": user_id }
          ]
        }

is busted. It is checking roles when it should check permissions, so you can only see the Project if you are the creator.

cubap added a commit that referenced this issue Nov 15, 2024
probably hotfix this in
@cubap
Copy link
Member Author

cubap commented Nov 25, 2024

fixed in #bb0f10783c2fa23b0a97eb4a4b1c5c8ff9fc11f8

@cubap cubap closed this as completed Nov 25, 2024
@cubap cubap self-assigned this Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant