mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
More PHP8.4 updates
This commit is contained in:
@@ -35,14 +35,10 @@ use Illuminate\Support\Facades\Log;
|
||||
class IsAllowedGroupAction implements ValidationRule
|
||||
{
|
||||
private array $acceptedRoles;
|
||||
private string $className;
|
||||
private string $methodName;
|
||||
private UserGroupRepositoryInterface $repository;
|
||||
private readonly UserGroupRepositoryInterface $repository;
|
||||
|
||||
public function __construct(string $className, string $methodName)
|
||||
public function __construct(private readonly string $className, private readonly string $methodName)
|
||||
{
|
||||
$this->className = $className;
|
||||
$this->methodName = $methodName;
|
||||
// you need these roles to do anything with any endpoint.
|
||||
$this->acceptedRoles = [UserRoleEnum::OWNER, UserRoleEnum::FULL];
|
||||
$this->repository = app(UserGroupRepositoryInterface::class);
|
||||
|
Reference in New Issue
Block a user