mirror of
https://github.com/AzuraCast/AzuraCast.git
synced 2024-06-17 22:47:04 +00:00
Fix ACL issue preventing Liquidsoap commands from working.
This commit is contained in:
parent
ee114763eb
commit
6bac14ea81
|
@ -11,6 +11,7 @@ use App\Entity\User;
|
|||
use App\Enums\GlobalPermissions;
|
||||
use App\Enums\PermissionInterface;
|
||||
use App\Enums\StationPermissions;
|
||||
use App\Exception\InvalidRequestAttribute;
|
||||
use App\Http\ServerRequest;
|
||||
use App\Traits\RequestAwareTrait;
|
||||
use Psr\EventDispatcher\EventDispatcherInterface;
|
||||
|
@ -106,8 +107,11 @@ final class Acl
|
|||
Station|int $stationId = null
|
||||
): bool {
|
||||
if ($this->request instanceof ServerRequest) {
|
||||
$user = $this->request->getUser();
|
||||
return $this->userAllowed($user, $action, $stationId);
|
||||
try {
|
||||
$user = $this->request->getUser();
|
||||
return $this->userAllowed($user, $action, $stationId);
|
||||
} catch (InvalidRequestAttribute) {
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue
Block a user