Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get permission and role class from method instead of the configuration in traits #2618

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

illambo
Copy link

@illambo illambo commented Feb 19, 2024

Edit: I push PR #2623 for a more complete solution.

This PR add the (little) ability to override role and permission model class in traits, this can "facilitate" (in a non-exhaustive manner, see discuss #2571) some cases of applications with package used on multiple databases (without the need to modify the configuration at runtime).

@parallels999
Copy link
Contributor

Must be the same change for Models??

config('permission.models.role'),

config('permission.models.permission'),

@illambo
Copy link
Author

illambo commented Feb 20, 2024

Good point, later I check this. Thanks

@drbyte
Copy link
Collaborator

drbyte commented Apr 19, 2024

still reviewing this and the other PR

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.

None yet

3 participants