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

only allow admins to edit their own organization's measurements #1119

Closed
wants to merge 1 commit into from

Conversation

metamoni
Copy link
Collaborator

Resolves #1029

Description

Admin users are currently able to edit any organization's measurements. We want to limit this to their own organization. This PR introduces a new current_org_measurement? check and redirects the user to the measurements table if the check fails.

Type of change

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Updated request specs with further examples.

@metamoni metamoni self-assigned this Jul 27, 2023
@metamoni
Copy link
Collaborator Author

The CI is failing with a weird error, not sure what's causing it

@metamoni metamoni closed this Aug 14, 2023
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.

Admin should only edit their own organization's measurements
1 participant