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

fix(fe2): admin project list comment threads authorization #3803

Closed
wants to merge 1 commit into from

Conversation

andrewwallacespeckle
Copy link
Contributor

@andrewwallacespeckle andrewwallacespeckle commented Jan 13, 2025

DISCORD THREAD

image
image
image

I noticed this was also happening on latest. Looking at the network tab, the GQL error STREAM_INVALID_ACCESS_ERROR happens when trying to fetch commentThreads in the admin project list.

The issue seems to be in authorizeProjectCommentsAccessFactory where the admin authorisation check happens after other permission checks, overriding the admin access.

I've made a fix and opened a PR, but since it's backend code I'd appreciate if @iamcgi , @fabiansgeikinsspeckle or anyone with knowledge on this could sense check this for me.

@gjedlicska
Copy link
Contributor

with the more appropriate fix in #3806 we do not need this any more

@gjedlicska gjedlicska closed this Jan 13, 2025
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

Successfully merging this pull request may close these issues.

2 participants