emfcamp / Website

The Electromagnetic Field web site
http://www.emfcamp.org
GNU Affero General Public License v3.0
40 stars 85 forks source link

Allow village administrators to add other people as village administrators #1526

Open Jonty opened 2 months ago

Jonty commented 2 months ago

We need village administrators to be able to add other people as village administrators so they can add/edit the village scheduled content. This is causing a problem in larger villages with their own content (like milliways and the maths village) as it means one person is a bottleneck.

This isn't quite the same thing as people adding themselves to villages, which is https://github.com/emfcamp/Website/issues/845

russss commented 2 months ago

FYI I think I can just do this manually in the database if it's just a few people. The permission structure is there, we just don't expose it.

katiesteckles commented 2 months ago

Feel free to use adding me as an admin for the Maths village as a test case!

Jonty commented 2 months ago

The maths village is actually a slightly different problem - we have the maths village, and we have the maths village workshop tent. They're currently two different venues.

Scroggs created the Maths Village and can add content to that, but you can't add content to the Maths Village Workshop Tent as it is a different thing.

I am not sure how best to handle this.

katiesteckles commented 2 months ago

I think this is the case for all the workshop villages - I think we did something in the backend that linked them, but @mscroggs may know more about that than me.

Jonty commented 2 months ago

In 2022 I think we scheduled things into the maths village (not workshop) so the village had access and we moved CFP content there. We can do this again, but there is an argument that the Maths Village is not the Maths Village Workshop as you may be running other things not-in-the-workshop.

Can we give people access to multiple venues? Does that break things?

russss commented 2 months ago

It turns out we already solved that problem last time and I forgot about it.

The maths village workshop tent venue is set as part of the maths village in the DB. Anyone with admin privileges on the maths village will be able to schedule content in all venues which are part of the village.

Jonty commented 2 months ago

@russss Wait so we already support multiple venues per village?!

russss commented 2 months ago

Yes! We even call this out in the attendee content form!

image
katiesteckles commented 2 months ago
image

This is where I can schedule things in the maths village

Jonty commented 2 months ago

I swear 20% of organising EMF is rediscovering the software we built already does things we thought we needed to implement.

Jonty commented 2 months ago

SO, I think this ticket is: It would be nice to have an add/remove village admin exposed in the admin interface, and then eventually in the attendee interface.