Support oft parent groups
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Scopes;
|
||||
|
||||
use App\Domains\Admin\Repositories\AdminParentGroupRepository;
|
||||
use App\Domains\Admin\Repositories\AdminTenantRepository;
|
||||
use App\Domains\Admin\Repositories\AdminUserRepository;
|
||||
use App\Models\Tenant;
|
||||
@@ -10,6 +11,7 @@ use App\Repositories\CostUnitRepository;
|
||||
use App\Repositories\EstimatesRepository;
|
||||
use App\Repositories\EventParticipantRepository;
|
||||
use App\Repositories\EventRepository;
|
||||
use App\Repositories\GlobalSettingRepository;
|
||||
use App\Repositories\InvoiceRepository;
|
||||
use App\Repositories\PageTextRepository;
|
||||
use App\Repositories\ParticipantRefundRepository;
|
||||
@@ -31,6 +33,8 @@ abstract class CommonController {
|
||||
protected PaymentMethodRepository $paymentMethods;
|
||||
protected AdminUserRepository $adminUsers;
|
||||
protected AdminTenantRepository $adminTenants;
|
||||
protected AdminParentGroupRepository $adminParentGroups;
|
||||
protected GlobalSettingRepository $globalSettings;
|
||||
|
||||
public function __construct() {
|
||||
$this->tenant = currentTenant();
|
||||
@@ -45,6 +49,8 @@ abstract class CommonController {
|
||||
$this->paymentMethods = new PaymentMethodRepository();
|
||||
$this->adminUsers = new AdminUserRepository();
|
||||
$this->adminTenants = new AdminTenantRepository();
|
||||
$this->adminParentGroups = new AdminParentGroupRepository();
|
||||
$this->globalSettings = app(GlobalSettingRepository::class);
|
||||
}
|
||||
|
||||
protected function checkAuth() {
|
||||
|
||||
Reference in New Issue
Block a user