Skip to content

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