working on users

This commit is contained in:
David Bomba 2021-11-05 20:43:25 +11:00
parent 916e20d902
commit 5f4e40162b
3 changed files with 3 additions and 2 deletions

View File

@ -536,6 +536,7 @@ class UserController extends BaseController
*/
public function bulk()
{
/* Validate restore() here and check if restoring the user will exceed their user quote (hosted only)*/
$action = request()->input('action');
$ids = request()->input('ids');

View File

@ -37,7 +37,7 @@ class CanAddUserRule implements Rule
// ->count();
// return $count < auth()->user()->company()->account->num_users;
return auth()->user()->company()->account->users->count() < auth()->user()->company()->account->num_users;
//return auth()->user()->company()->account->users->count() < auth()->user()->company()->account->num_users;
}
/**

View File

@ -116,7 +116,7 @@ class CreateAccount
$spaa9f78->fresh();
if(Ninja::isHosted()){
nlog("welcome");
App::forgetInstance('translator');
$t = app('translator');
$t->replace(Ninja::transformTranslations($sp035a66->settings));