Skip to content

SBCQ-118: Location policy#93

Merged
BradyMitch merged 4 commits intomainfrom
sbcq-118-location-policy
Mar 17, 2026
Merged

SBCQ-118: Location policy#93
BradyMitch merged 4 commits intomainfrom
sbcq-118-location-policy

Conversation

@BradyMitch
Copy link
Contributor

🎯 Summary

SBCQ-118

A few points on the policies:

  1. All users except Authenticated can change their own location.
  2. Administrator users can view, edit, create, and archive all locations.
  3. SDM users can edit their own location.

🧪 Testing

  1. Make sure you have Administrator role.
  2. Go to Settings > Users - when editing any user, the location select should NOT be disabled (you dont have to test saving).
  3. Go to Settings > Locations - you should be able to see, edit, and archive all locations, as well as create.
  4. Change your role to SDM.
  5. Go to Settings > Users - when editing a user, the location select should NOT be disabled (you dont have to test saving).
  6. Go to Settings > Locations - you should be able to see and edit your own location (but not archive). You should not be able to create a location.
  7. Change your role to CSR.
  8. Go to Settings > Users - you should be able to change your own location, but not others.
  9. Go to Settings > Locations - you should be able to see your own location, but not edit it.

🔰 Checklist

  • I have read and agree with the following checklist.
  • I have performed a self-review of my code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have made corresponding changes to the documentation where required.
  • I have tested my changes to the best of my ability.
  • I have consulted with the team if introducing a new dependency.
  • My changes generate no new warnings.

Copy link
Contributor

@veenupunyani veenupunyani left a comment

Choose a reason for hiding this comment

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

works as suggested

@BradyMitch BradyMitch merged commit 912f355 into main Mar 17, 2026
9 checks passed
@BradyMitch BradyMitch deleted the sbcq-118-location-policy branch March 17, 2026 21:48
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.

2 participants