mirror of
https://github.com/pelican-dev/panel.git
synced 2025-11-09 14:49:35 +01:00
19 lines
417 B
PHP
19 lines
417 B
PHP
<?php
|
|
|
|
namespace App\Policies\Server;
|
|
|
|
trait DefaultPolicies
|
|
{
|
|
/**
|
|
* This is a horrendous hack to avoid Laravel's "smart" behavior that does
|
|
* not call the before() function if there isn't a function matching the
|
|
* policy permission.
|
|
*
|
|
* @param array<string, mixed> $arguments
|
|
*/
|
|
public function __call(string $name, array $arguments): void
|
|
{
|
|
// do nothing
|
|
}
|
|
}
|