mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-01 02:54:36 -04:00
Minor fixes
This commit is contained in:
parent
aee7d6a098
commit
1634de96ef
@ -93,7 +93,7 @@ class ClientGatewayTokenController extends BaseController
|
|||||||
*/
|
*/
|
||||||
public function index(ListClientGatewayTokenRequest $request)
|
public function index(ListClientGatewayTokenRequest $request)
|
||||||
{
|
{
|
||||||
$client_gateway_token_gateway_tokens = ClientGatewayToken::scope();
|
$client_gateway_token_gateway_tokens = ClientGatewayToken::query()->company();
|
||||||
|
|
||||||
return $this->listResponse($client_gateway_token_gateway_tokens);
|
return $this->listResponse($client_gateway_token_gateway_tokens);
|
||||||
}
|
}
|
||||||
|
@ -22,6 +22,9 @@ class ListClientGatewayTokenRequest extends Request
|
|||||||
*/
|
*/
|
||||||
public function authorize() : bool
|
public function authorize() : bool
|
||||||
{
|
{
|
||||||
return auth()->user()->isAdmin();
|
/** @var \App\Models\User $user */
|
||||||
|
$user = auth()->user();
|
||||||
|
|
||||||
|
return $user->isAdmin();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user