feat: add permission checks for election views

- Add permission checks to the election index and election year views.
- Show election views only to users with a certain association status.
- Update nostrApp.js to entangle the 'isAllowed' state.
This commit is contained in:
fsociety
2024-09-30 17:09:25 +02:00
parent 9b23a7f6e7
commit 241cc9659f
4 changed files with 32 additions and 5 deletions

View File

@@ -1,5 +1,6 @@
export default (livewireComponent) => ({
isAllowed: livewireComponent.entangle('isAllowed', true),
signThisEvent: livewireComponent.entangle('signThisEvent'),
init() {