geeksforsocialchange / PlaceCal

Bring your community together
https://placecal.org
GNU Affero General Public License v3.0
17 stars 8 forks source link

Neighbourhood admins can only CRUD calendars attached to partners in their neighbourhood #2107

Closed r-ferrier closed 1 year ago

r-ferrier commented 1 year ago

Description

Neighbourhood admins should not be able to create, update, or destroy calendars unless they are associated with partners in their neighbourhood.

Acceptance criteria

r-ferrier commented 1 year ago

This also appears to be working exactly as it should. Hoorah!

You can only add a calendar if you are a root user or if you are a neighbourhood or partner admin. You can only add, edit and delete calendars from partners you admin for, and you can't see any calendars in the calendar index except those attached to your partners.

r-ferrier commented 1 year ago

Verified:

Screenshot 2023-11-08 at 15 54 56 Screenshot 2023-11-08 at 15 58 25
r-ferrier commented 1 year ago

This ticket was partially uncompleted but have split out and reticketed because you can actually still do all the things you need to, you just can't see the calendars in the index

r-ferrier commented 1 year ago

A neighbourhood admin can create a calendar, and assign it to any of the partners they admin for Screenshot 2023-11-14 at 15 57 12

A neighbourhood admin can see the calendars of everyone they admin for Screenshot 2023-11-14 at 15 58 09

A neighbourhood admin cannot crud calendars not belonging to them/ cannot see any lists of calendars not associated with them (root view - contains calendars not visible to NA) Screenshot 2023-11-14 at 16 00 29

A neighbourhood admin can delete calendars associated with the partners they admin for Screenshot 2023-11-14 at 16 00 10