This commit is contained in:
Bozhidar 2024-04-29 01:10:38 +03:00
parent 10d26a6b82
commit 886db3aa45
4 changed files with 2 additions and 30 deletions

View file

@ -19,10 +19,6 @@ The admin panel can be opened on port: yourserver.com:8443
![Unit Tests](https://github.com/PhyreApps/PhyrePanel/actions/workflows/app-unit-test.yml/badge.svg)
[![codecov](https://codecov.io/gh/PhyreApps/PhyrePanel/graph/badge.svg?token=BO0RTPLS4W)](https://codecov.io/gh/PhyreApps/PhyrePanel)
### Dev branch
![Unit Tests](https://github.com/PhyreApps/PhyrePanel/actions/workflows/app-unit-test.yml/badge.svg?branch=dev)
[![codecov](https://codecov.io/gh/PhyreApps/PhyrePanel/graph/badge.svg?token=BO0RTPLS4W)](https://codecov.io/gh/PhyreApps/PhyrePanel)
All development is done on the `dev` branch. The `master` branch is used for stable releases.
Please note that the `dev` branch is not guaranteed to be stable at all times, and may contain bugs or other issues. Use it at your own risk.

View file

@ -1,24 +0,0 @@
<?php
namespace App\Http\Controllers\Api\Request;
class AuthorizedApiRequest extends ApiRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
$user = auth()->user();
if ($user) {
return true;
}
return false;
}
}

View file

@ -2,7 +2,7 @@
namespace App\Http\Controllers\Api\Request;
class CustomerCreateRequest extends AuthorizedApiRequest
class CustomerCreateRequest extends ApiRequest
{
/**
* Get the validation rules that apply to the request.

View file

@ -2,7 +2,7 @@
namespace App\Http\Controllers\Api\Request;
class HostingSubscriptionCreateRequest extends AuthorizedApiRequest
class HostingSubscriptionCreateRequest extends ApiRequest
{
/**
* Get the validation rules that apply to the request.