Code improvements
This commit is contained in:
1 parent
d23e6c3914
commit
4bb64b0053
51 files changed
+30702
-87
No files matched your search
@@ -26,8 +26,8 @@ class RegistrationController extends CommonController {
|
||||
|
||||
$inertiaProvider = new InertiaProvider('UserManagement/Registration', [
|
||||
'errors' => $errors,
|
||||
'appName' => app('tenant')->name,
|
||||
'tenant' => app('tenant'),
|
||||
'appName' => currentTenant()->name,
|
||||
'tenant' => currentTenant(),
|
||||
]);
|
||||
return $inertiaProvider->render();
|
||||
}
|
||||
@@ -46,7 +46,7 @@ class RegistrationController extends CommonController {
|
||||
$userRoleMain = UserRole::USER_ROLE_USER;
|
||||
$userRoleLocalGroup = UserRole::USER_ROLE_USER;
|
||||
|
||||
$localGroup = app('tenant')->slug === 'lv' ? $request->get('localGroup') : app('tenant')->slug;
|
||||
$localGroup = currentTenant()->slug === 'lv' ? $request->get('localGroup') : currentTenant()->slug;
|
||||
|
||||
|
||||
$registrationRequest = new UserRegistrationRequest(
|
||||
|
||||
Reference in new issue
Block a user