Skip to content

Commit 9e83ebe

Browse files
authored
Set default team_foreign_key in case config file is old
Fixes #2535
1 parent 0e34712 commit 9e83ebe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PermissionRegistrar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function initializeCache(): void
6666
$this->cacheExpirationTime = config('permission.cache.expiration_time') ?: \DateInterval::createFromDateString('24 hours');
6767

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

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

0 commit comments

Comments
 (0)