Commit Graph

10 Commits

Author SHA1 Message Date
fsociety
421d60e42b feat(election): add access control for election details and voting options based on user permissions. 2024-10-25 13:30:39 +02:00
fsociety
c7c744d626 🆕 feat(pages): change x-if to x-show for conditional rendering in admin and project support views 2024-10-25 13:06:44 +02:00
fsociety
77c4f0158e 🎨 refactor: update x-show to x-if for conditionally rendering elements in Blade templates. 2024-10-25 11:34:25 +02:00
fsociety
5113954ba7 🛠️ refactor: group function imports for better readability in multiple Blade files 2024-10-24 21:19:06 +02:00
fsociety
5b0f55ba95 🚫 fix(permissions): update unauthorized access alerts for member and election management pages 2024-10-07 14:26:49 +02:00
fsociety
1d5079bfa0 feat: handle logout events in nostr-login
This commit introduces handling for logout events in nostr-login across various pages. When a user logs out, the current public key and other related information are reset to null. The nostrLogin.js file has also been updated to dispatch a 'nostrLoggedOut' event when this occurs. Additionally, the nostr-login package has been added to the project dependencies.
2024-10-06 13:38:49 +02:00
fsociety
ccf4b7abeb feat: add multiple allowed public keys for admin access
This commit introduces a change in the authorization mechanism for the admin sections of the association members and election pages. Instead of checking for a single allowed public key, the system now checks for an array of allowed public keys, enhancing the flexibility of the admin access control.
2024-10-01 20:55:07 +02:00
fsociety
c0e4a4bb98 feat: change conditional checks for association status and public key
Swapped the conditional check for association status and public key in both admin.blade.php and index.blade.php. This change ensures that the correct condition is evaluated in the respective files.
2024-10-01 14:42:13 +02:00
fsociety
241cc9659f 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.
2024-09-30 17:09:25 +02:00
fsociety
c2f0014a8e add members table 2024-09-29 18:21:09 +02:00