- Unify all conditional YAML load under utils.smart_yaml_load.
- Update all setting migrations to use the smart setting test
mixin to create the test config file.
Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
Closes GitLab issue #702. Thanks to Kevin Pawsey (@kevinpawsey) for
the report and the help debuging the issue.
Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
Add PermissionTestCaseMixin and SmartSettingTestCaseMixin
to better organize cache invalidation of both apps for
tests.
Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
Closes GitLab issue #599. Thanks to Frédéric Sheedy
(@fsheedy) for the report and debug information.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
Instead of inserting the path of the apps into the Python app,
the apps are now referenced by their full import path.
This solves name clashes with external or native Python libraries.
Example: Mayan statistics app vs. Python new statistics library.
Every app reference is now prepended with 'mayan.apps'.
Existing config.yml files need to be updated manually.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
Add support for granting the document type edit, document type delete, and document type view
permissions to individual document type instances.
Improved tests by testing for accesses.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>