parent
0d0ec8d904
commit
04620c2fd1
2 changed files with 2 additions and 2 deletions
|
|
@ -26,7 +26,7 @@ class StoreGroupSettingRequest extends Request
|
|||
*/
|
||||
public function authorize() : bool
|
||||
{
|
||||
return auth()->user()->can('create', GroupSetting::class) && auth()->user()->account->hasFeature(Account::FEATURE_API);;
|
||||
return auth()->user()->can('create', GroupSetting::class) && auth()->user()->account->hasFeature(Account::FEATURE_API);
|
||||
}
|
||||
|
||||
public function rules()
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ class StoreWebhookRequest extends Request
|
|||
*/
|
||||
public function authorize() : bool
|
||||
{
|
||||
return auth()->user()->isAdmin() && auth()->user()->account->hasFeature(Account::FEATURE_API)
|
||||
return auth()->user()->isAdmin() && auth()->user()->account->hasFeature(Account::FEATURE_API);
|
||||
}
|
||||
|
||||
public function rules()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue