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
I have environment with central db + tenants (https://tenancyforlaravel.com).
$user = ..
inTenant($tenant, function () use ($user){
setPermissionsTeamId(1);
$permissions = .... (factory)
$user->asignRole(...); <- there is a problem...
//---
after assign, the user have this role and I can continue with my test. But after upgrading to 6.15.0 there is no this role in user->roles (is in tenant db, that's ok).
//---
})
(I have my own load('roles') method in User, when I parent::load('roles') in tenant and outOfTenant(fn()) I loading central roles and merge it... but I don't think it's related... everything works as it should before 6.15.0. .. )
Steps To Reproduce
...
Example Application
No response
Version of spatie/laravel-permission package:
6.15.0
Version of laravel/framework package:
11.43.2
PHP version:
8.3.6
Database engine and version:
No response
OS: Windows/Mac/Linux version:
No response
The text was updated successfully, but these errors were encountered:
Description
Hi I have a problem with last version 6.15.0.
I have environment with central db + tenants (https://tenancyforlaravel.com).
$user = ..
inTenant($tenant, function () use ($user){
setPermissionsTeamId(1);
$permissions = .... (factory)
$user->asignRole(...); <- there is a problem...
//---
after assign, the user have this role and I can continue with my test. But after upgrading to 6.15.0 there is no this role in user->roles (is in tenant db, that's ok).
//---
})
(I have my own load('roles') method in User, when I parent::load('roles') in tenant and outOfTenant(fn()) I loading central roles and merge it... but I don't think it's related... everything works as it should before 6.15.0. .. )
Steps To Reproduce
...
Example Application
No response
Version of spatie/laravel-permission package:
6.15.0
Version of laravel/framework package:
11.43.2
PHP version:
8.3.6
Database engine and version:
No response
OS: Windows/Mac/Linux version:
No response
The text was updated successfully, but these errors were encountered: