Skip to content

Conversation

@spilth
Copy link

@spilth spilth commented Dec 12, 2025

No description provided.

spilth and others added 27 commits November 11, 2025 14:10
* Refactor permissions: cleanup generators, update policy, and fix tests

- Removed unused permission generators from generators.py
- Added can_read permission to UltraVioletPermissionPolicy to properly
  handle access control for published records
- Updated test fixtures in conftest.py to correctly create and assign
  roles to test users using Flask-Security's datastore
- Fixed permission tests to properly verify role-based access control
  for restricted records

This ensures that users with the viewer role can successfully access
restricted records through the API endpoint.

* Add test run to each branch push

* Make separate user for policy test

* Remove wrong policy

* Add correct can_read

* Add viewer role and can_read file policy
@spilth spilth closed this Dec 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants