moo.core.tests.test_security_model_acl
Security tests: Access (ACL) and Repository model permission checks.
Covers Access.save / .delete grant enforcement (including the attacker-rebinds-row-FK attack) and the Repository.save wizard guard, which fires regardless of whether Repository is reached via verb.repo or imported directly.
Functions
|
Access.delete() previously had no permission check. |
Creating a new Access row directly (bypassing allow()/deny()) must require grant on the target entity. |
|
|
Access.save() previously had no permission check. |
|
Repository.save() previously had no permission check. |
|
Repository.save() checks ContextManager.get('caller').is_wizard() directly, not call-site restrictions. |