mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-11-24 08:30:28 +00:00
update
This commit is contained in:
parent
10d26a6b82
commit
886db3aa45
4 changed files with 2 additions and 30 deletions
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue