1
0
mirror of https://github.com/flarum/core.git synced 2025-08-04 07:27:39 +02:00

Apply fixes from StyleCI

This commit is contained in:
StyleCI Bot
2023-03-26 20:07:37 +00:00
parent 3c82a887a8
commit 70135459ce
3 changed files with 15 additions and 3 deletions

View File

@@ -1,5 +1,12 @@
<?php
/*
* This file is part of Flarum.
*
* For detailed copyright and license information, please view the
* LICENSE file that was distributed with this source code.
*/
namespace Flarum\Extend;
use Flarum\Extension\Extension;

View File

@@ -1,12 +1,19 @@
<?php
/*
* This file is part of Flarum.
*
* For detailed copyright and license information, please view the
* LICENSE file that was distributed with this source code.
*/
namespace Flarum\User\Access;
use Flarum\User\User;
class AdminPolicy extends AbstractPolicy
{
static array $allowNoOnePermissions = [];
public static array $allowNoOnePermissions = [];
/**
* @param string|array<string> $permissions

View File

@@ -380,8 +380,6 @@ class User extends AbstractModel
*/
public function hasPermission($permission)
{
return in_array($permission, $this->getPermissions());
}