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

[PB-2430] fix: allow sharing password deactivation, workspace sharing permissions fixed #380

Merged
merged 4 commits into from
Aug 12, 2024

Conversation

apsantiso
Copy link
Collaborator

@apsantiso apsantiso commented Aug 2, 2024

This PR focuses on eliminating duplicated data extraction logic in guards and fixing a permissions issue in workspaces. It also adds the option to enable or disable public sharing passwords.

  1. New Decorator for Data Extraction:
    Created a decorator to handle data extraction from the request object, so we no longer have to repeat this logic in every guard.

  2. Refactored Extraction Logic:
    Moved the extractDataFromRequest logic into a single function, reducing code duplication.

  3. Fixed Permissions Issue:
    Permissions are now queried with inner join to retrieve expected results.

  4. Team Sharing:
    Updated the sharing navigation to work for multiple teams by removing the dependence on just one teamId in the token.

@apsantiso apsantiso force-pushed the feat/support-actions-on-sharings-root branch from 6b7d161 to 2b3acd4 Compare August 12, 2024 11:02
@apsantiso apsantiso force-pushed the feat/support-actions-on-sharings-root branch from 2b3acd4 to ac28e4d Compare August 12, 2024 11:04
@apsantiso apsantiso force-pushed the feat/support-actions-on-sharings-root branch from 864cc6d to 265a457 Compare August 12, 2024 12:35
@apsantiso apsantiso changed the title feat: added support for actions on sharings root fix: allow sharing password deactivation, workspace sharing permissions fixed Aug 12, 2024
@apsantiso apsantiso changed the title fix: allow sharing password deactivation, workspace sharing permissions fixed [PB-2430] fix: allow sharing password deactivation, workspace sharing permissions fixed Aug 12, 2024
@apsantiso apsantiso marked this pull request as ready for review August 12, 2024 13:25
@apsantiso apsantiso force-pushed the feat/support-actions-on-sharings-root branch from 265a457 to 29dff85 Compare August 12, 2024 13:56
Copy link

sonarcloud bot commented Aug 12, 2024

@apsantiso apsantiso merged commit 6e9c077 into master Aug 12, 2024
10 of 11 checks passed
@apsantiso apsantiso deleted the feat/support-actions-on-sharings-root branch August 12, 2024 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant