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

feat(projects): filter projects, that are not available under sso #3585

Merged
merged 16 commits into from
Dec 3, 2024

Conversation

gjedlicska
Copy link
Contributor

Description & motivation

Changes:

To-do before merge:

Screenshots:

Validation of changes:

Checklist:

  • My pull request follows the guidelines in the Contributing guide?
  • My pull request does not duplicate any other open Pull Requests for the same update/change?
  • My commits are related to the pull request and do not amend unrelated code or documentation.
  • My code follows a similar style to existing code.
  • I have added appropriate tests.
  • I have updated or added relevant documentation.

References

@gjedlicska
Copy link
Contributor Author

@fabis94 could you double check, that the (Stream|Project)Collection -> User(Stream|Project)Collection changes are not breaking anything on the frontend / type system.

I've tested with FE2, DUI3 and DUI2 things were working, but i'd like your stamp on this too.

packages/frontend-2/components/projects/Dashboard.vue Outdated Show resolved Hide resolved
// a little escape hatch for admins to look into users streams
// const forOtherUser = parent.id !== ctx.userId
const isAdmin = adminOverrideEnabled() && ctx.role === Roles.Server.Admin
const forOtherUser = !isAdmin
Copy link
Contributor

@fabis94 fabis94 Dec 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this correct? Only show other user's streams if not an admin? Surely it's the inverse? @gjedlicska

@fabis94
Copy link
Contributor

fabis94 commented Dec 3, 2024

the CI's failing, you probably have to merge in main

@gjedlicska gjedlicska requested a review from fabis94 December 3, 2024 10:06
fabis94
fabis94 previously approved these changes Dec 3, 2024
…systems/speckle-server into gergo/filterSsoProtectedProjects
@gjedlicska gjedlicska merged commit c68090a into main Dec 3, 2024
26 of 28 checks passed
@gjedlicska gjedlicska deleted the gergo/filterSsoProtectedProjects branch December 3, 2024 10:51
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.

3 participants