bitraf / p2k16

Bitraf's self-server system for doors, memberships and tools.
https://bitraf.no
MIT License
10 stars 11 forks source link

Add support for different circles for each door #109

Closed omega closed 3 years ago

omega commented 3 years ago

This allows us to have a set of circles for each door, and without membership in that circle, you wont be able to open that door.

This check does not apply to employees of companies, only for paying members.

If you attempt to open multiple doors, none will open if you lack any of the circles.

For now all doors have door only, this is intended used at BV9 to limit access to certain areas.

https://github.com/bitraf/infrastructure/issues/149

omega commented 3 years ago

this is very "least possible effort", so no UI changes for now, just the backend support

omega commented 3 years ago

one thing I am unsure about, is if the buttons on the frontpage should only show up if you have the door circle (today that is the case, with this PR, it would show up for any paying member, but the buttons would give error with missing cirlces)

omega commented 3 years ago

Yeah we want that at some point 🙂