You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given two models that utilize the HasRolesAndAbilities trait., let's call them Member and User. A User is assigned the role of Admin, and a Member (with the same id as the User) is also assigned the role of Admin. When syncing roles to a Member I am experiencing that any role being detached from the Member l is also being detached from the User .
The following test fails due to the assigned_roles table not containing the role for the User.
I would expect that it would exist and syncing the roles on the Member model would not impact the roles on the User model.
Given two models that utilize the
HasRolesAndAbilities
trait., let's call themMember
andUser
. AUser
is assigned the role ofAdmin
, and aMember
(with the sameid
as theUser
) is also assigned the role ofAdmin
. When syncing roles to aMember
I am experiencing that any role being detached from theMember
l is also being detached from theUser
.The following test fails due to the
assigned_roles
table not containing the role for theUser
.I would expect that it would exist and syncing the roles on the
Member
model would not impact the roles on theUser
model.PHP version: 7.4.7
Laravel Framework: 7.18.0
PostgreSQL: 12.3
Bouncer: 1.0.0-rc.8
This also occurs on earlier versions of the package.
The text was updated successfully, but these errors were encountered: