This breaks literally the entire panel.
This commit is contained in:
parent
344c1a9885
commit
df87ea0867
88 changed files with 1205 additions and 992 deletions
|
@ -9,8 +9,8 @@
|
|||
|
||||
namespace Pterodactyl\Transformers\Admin;
|
||||
|
||||
use Pterodactyl\Models\Egg;
|
||||
use Illuminate\Http\Request;
|
||||
use Pterodactyl\Models\ServiceOption;
|
||||
use League\Fractal\TransformerAbstract;
|
||||
|
||||
class OptionTransformer extends TransformerAbstract
|
||||
|
@ -53,7 +53,7 @@ class OptionTransformer extends TransformerAbstract
|
|||
*
|
||||
* @return array
|
||||
*/
|
||||
public function transform(ServiceOption $option)
|
||||
public function transform(Egg $option)
|
||||
{
|
||||
return $option->toArray();
|
||||
}
|
||||
|
@ -63,7 +63,7 @@ class OptionTransformer extends TransformerAbstract
|
|||
*
|
||||
* @return \Leauge\Fractal\Resource\Collection
|
||||
*/
|
||||
public function includeService(ServiceOption $option)
|
||||
public function includeService(Egg $option)
|
||||
{
|
||||
if ($this->request && ! $this->request->apiKeyHasPermission('service-view')) {
|
||||
return;
|
||||
|
@ -77,7 +77,7 @@ class OptionTransformer extends TransformerAbstract
|
|||
*
|
||||
* @return \Leauge\Fractal\Resource\Collection
|
||||
*/
|
||||
public function includePacks(ServiceOption $option)
|
||||
public function includePacks(Egg $option)
|
||||
{
|
||||
if ($this->request && ! $this->request->apiKeyHasPermission('pack-list')) {
|
||||
return;
|
||||
|
@ -91,7 +91,7 @@ class OptionTransformer extends TransformerAbstract
|
|||
*
|
||||
* @return \Leauge\Fractal\Resource\Collection
|
||||
*/
|
||||
public function includeServers(ServiceOption $option)
|
||||
public function includeServers(Egg $option)
|
||||
{
|
||||
if ($this->request && ! $this->request->apiKeyHasPermission('server-list')) {
|
||||
return;
|
||||
|
@ -105,7 +105,7 @@ class OptionTransformer extends TransformerAbstract
|
|||
*
|
||||
* @return \Leauge\Fractal\Resource\Collection
|
||||
*/
|
||||
public function includeVariables(ServiceOption $option)
|
||||
public function includeVariables(Egg $option)
|
||||
{
|
||||
if ($this->request && ! $this->request->apiKeyHasPermission('option-view')) {
|
||||
return;
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
namespace Pterodactyl\Transformers\Admin;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
use Pterodactyl\Models\Service;
|
||||
use Pterodactyl\Models\Nest;
|
||||
use League\Fractal\TransformerAbstract;
|
||||
|
||||
class ServiceTransformer extends TransformerAbstract
|
||||
|
@ -52,7 +52,7 @@ class ServiceTransformer extends TransformerAbstract
|
|||
*
|
||||
* @return array
|
||||
*/
|
||||
public function transform(Service $service)
|
||||
public function transform(Nest $service)
|
||||
{
|
||||
return $service->toArray();
|
||||
}
|
||||
|
@ -62,7 +62,7 @@ class ServiceTransformer extends TransformerAbstract
|
|||
*
|
||||
* @return \Leauge\Fractal\Resource\Collection
|
||||
*/
|
||||
public function includeOptions(Service $service)
|
||||
public function includeOptions(Nest $service)
|
||||
{
|
||||
if ($this->request && ! $this->request->apiKeyHasPermission('option-list')) {
|
||||
return;
|
||||
|
@ -76,7 +76,7 @@ class ServiceTransformer extends TransformerAbstract
|
|||
*
|
||||
* @return \Leauge\Fractal\Resource\Collection
|
||||
*/
|
||||
public function includeServers(Service $service)
|
||||
public function includeServers(Nest $service)
|
||||
{
|
||||
if ($this->request && ! $this->request->apiKeyHasPermission('server-list')) {
|
||||
return;
|
||||
|
@ -90,7 +90,7 @@ class ServiceTransformer extends TransformerAbstract
|
|||
*
|
||||
* @return \Leauge\Fractal\Resource\Collection
|
||||
*/
|
||||
public function includePacks(Service $service)
|
||||
public function includePacks(Nest $service)
|
||||
{
|
||||
if ($this->request && ! $this->request->apiKeyHasPermission('pack-list')) {
|
||||
return;
|
||||
|
|
|
@ -10,8 +10,8 @@
|
|||
namespace Pterodactyl\Transformers\Admin;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
use Pterodactyl\Models\EggVariable;
|
||||
use League\Fractal\TransformerAbstract;
|
||||
use Pterodactyl\Models\ServiceVariable;
|
||||
|
||||
class ServiceVariableTransformer extends TransformerAbstract
|
||||
{
|
||||
|
@ -48,7 +48,7 @@ class ServiceVariableTransformer extends TransformerAbstract
|
|||
*
|
||||
* @return array
|
||||
*/
|
||||
public function transform(ServiceVariable $variable)
|
||||
public function transform(EggVariable $variable)
|
||||
{
|
||||
return $variable->toArray();
|
||||
}
|
||||
|
@ -58,7 +58,7 @@ class ServiceVariableTransformer extends TransformerAbstract
|
|||
*
|
||||
* @return \Leauge\Fractal\Resource\Collection
|
||||
*/
|
||||
public function includeVariables(ServiceVariable $variable)
|
||||
public function includeVariables(EggVariable $variable)
|
||||
{
|
||||
if ($this->request && ! $this->request->apiKeyHasPermission('server-view')) {
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue