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

Added support for polymorphic roles and multiple scopes...basically Model ACLs. #245

Open
wants to merge 4 commits into
base: 2.0-dev
Choose a base branch
from

Conversation

deardooley
Copy link

Added support for polymorphic roles and multiple scopes by extending the pivot table with additional fields and adding support for specifying a Model class and Model object id when calling addRole. All other relevant calls have been updated to support optional $modelName and $modelId fields such that you can now apply a role or permission to any model object.

Added new HasModelRole trait to the package to allow for easy role and permission checking of the current user on any Model.
Added unit tests to validate the behavior of the new features.

… pivot table with additional fields and adding support for specifying a Model class and Model object id when calling addRole. All other relevant calls have been updated to support optional $modelName and $modelId fields such that you can now apply a role or permission to any model object.

Added new HasModelRole trait to the package to allow for easy role and permission checking of the current user on any Model.
Added unit tests to validate the behavior of the new features.
@georgeboot
Copy link

@deardooley Can you perhaps solve these test errors thrown by Travis CI?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants