mirror of
https://github.com/flarum/core.git
synced 2025-08-04 15:37:51 +02:00
Apply fixes from StyleCI
This commit is contained in:
@@ -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;
|
||||
|
@@ -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
|
||||
|
@@ -380,8 +380,6 @@ class User extends AbstractModel
|
||||
*/
|
||||
public function hasPermission($permission)
|
||||
{
|
||||
|
||||
|
||||
return in_array($permission, $this->getPermissions());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user