mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-13 01:14:04 +00:00
Session scoping & tenant() cleanup
This commit is contained in:
parent
c8f9a82745
commit
05d6383b99
6 changed files with 125 additions and 4 deletions
|
|
@ -37,7 +37,7 @@ class UserImpersonation implements Feature
|
|||
{
|
||||
$token = $token instanceof ImpersonationToken ? $token : ImpersonationToken::findOrFail($token);
|
||||
|
||||
if (((string) $token->tenant_id) !== ((string) tenant('id'))) {
|
||||
if (((string) $token->tenant_id) !== ((string) tenant()->getTenantKey())) {
|
||||
abort(403);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue