Skip to content

Commit

Permalink
Set default team_foreign_key in case config file is old
Browse files Browse the repository at this point in the history
Fixes #2535
  • Loading branch information
drbyte authored Nov 6, 2023
1 parent 0e34712 commit 9e83ebe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PermissionRegistrar.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function initializeCache(): void
$this->cacheExpirationTime = config('permission.cache.expiration_time') ?: \DateInterval::createFromDateString('24 hours');

$this->teams = config('permission.teams', false);
$this->teamsKey = config('permission.column_names.team_foreign_key');
$this->teamsKey = config('permission.column_names.team_foreign_key', 'team_id');

$this->cacheKey = config('permission.cache.key');

Expand Down

0 comments on commit 9e83ebe

Please sign in to comment.