Custom Policy Check - HasPermission closes #343 #344

Merged
moritz merged 3 commits from feature/343_haspermission into main 2026-01-08 18:05:16 +01:00
Owner

Description of the implemented changes

The changes were:

  • Bugfixing
  • New Feature
  • Breaking Change
  • Refactoring

Definition of Done

Code Quality

  • No new technical depths
  • Linting passed
  • Documentation is added were needed

Accessibility

  • New elements are properly defined with html-tags
  • Colour contrast follows WCAG criteria
  • Aria labels are added when needed
  • Everything is accessible by keyboard
  • Tab-Order is comprehensible
  • All interactive elements have a visible focus

Testing

  • Tests for new code are written
  • All tests pass
  • axe-core dev tools show no critical or major issues

Additional Notes

## Description of the implemented changes The changes were: - [ ] Bugfixing - [x] New Feature - [ ] Breaking Change - [ ] Refactoring ## Definition of Done ### Code Quality - [x] No new technical depths - [x] Linting passed - [x] Documentation is added were needed ### Accessibility - [ ] New elements are properly defined with html-tags - [ ] Colour contrast follows WCAG criteria - [ ] Aria labels are added when needed - [ ] Everything is accessible by keyboard - [ ] Tab-Order is comprehensible - [ ] All interactive elements have a visible focus ### Testing - [x] Tests for new code are written - [x] All tests pass - [ ] axe-core dev tools show no critical or major issues ## Additional Notes <!--- Add any additional information for the reviewers here -->
moritz self-assigned this 2026-01-08 17:06:55 +01:00
moritz added 2 commits 2026-01-08 17:06:56 +01:00
Add comprehensive test suite for the HasPermission Ash Policy Check
covering permission lookup, scope application, error handling, and logging.
feat: implement HasPermission policy check
All checks were successful
continuous-integration/drone/push Build is passing
288002f404
Implement custom Ash Policy Check that reads permissions from
PermissionSets module and applies scope filters to Ash queries.
moritz added 1 commit 2026-01-08 17:45:37 +01:00
fix: correct relationship filter paths in HasPermission check
All checks were successful
continuous-integration/drone/push Build is passing
db0a187058
- Use user.id instead of user_id for Member linked scope
- Use member.user.id for CustomFieldValue linked scope
- Add lazy logger evaluation
- Improve action nil handling
- Add integration tests for filter expressions
moritz changed title from WIP: Custom Policy Check - HasPermission closes #343 to Custom Policy Check - HasPermission closes #343 2026-01-08 18:05:02 +01:00
moritz merged commit 35aff50bea into main 2026-01-08 18:05:16 +01:00
moritz deleted branch feature/343_haspermission 2026-01-08 18:05:17 +01:00
Sign in to join this conversation.
No description provided.