Skip to content

Permission or Rol based in two models #1775

Answered by hulkur
mtamagusku asked this question in Q&A
Discussion options

You must be logged in to vote

As far as I understand, this package does not support scoped roles/permissions.

With this package you have to create same role for each company separately (ex: 'editor_company_1', 'editor_company_2') and then check for it. (something like $user->hasRole('editor_company_' . $article->company_id))

You can also check out alternatives provided in readme.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by freekmurze
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants
Converted from issue

This discussion was converted from issue #1575 on July 08, 2021 14:12.