Skip to content

Commit 4b4e952

Browse files
authored
Merge pull request #52 from Lomkit/GautierDele-patch-1
🐛 default config
2 parents febb092 + f45adc3 commit 4b4e952

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Http/Resource.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public function defaultOrderBy(RestRequest $request): array
8888
*/
8989
public function isAutomaticGatingEnabled(): bool
9090
{
91-
return config('rest.automatic_gates.enabled');
91+
return config('rest.automatic_gates.enabled', true);
9292
}
9393

9494
/**
@@ -98,7 +98,7 @@ public function isAutomaticGatingEnabled(): bool
9898
*/
9999
public function isAuthorizingEnabled(): bool
100100
{
101-
return config('rest.authorizations.enabled');
101+
return config('rest.authorizations.enabled', true);
102102
}
103103

104104
/**
@@ -108,7 +108,7 @@ public function isAuthorizingEnabled(): bool
108108
*/
109109
public function isAuthorizationCacheEnabled(): bool
110110
{
111-
return config('rest.authorizations.cache.enabled');
111+
return config('rest.authorizations.cache.enabled', true);
112112
}
113113

114114
/**

0 commit comments

Comments
 (0)