mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-31 10:14:36 -04:00
working on users
This commit is contained in:
parent
916e20d902
commit
5f4e40162b
@ -536,6 +536,7 @@ class UserController extends BaseController
|
|||||||
*/
|
*/
|
||||||
public function bulk()
|
public function bulk()
|
||||||
{
|
{
|
||||||
|
/* Validate restore() here and check if restoring the user will exceed their user quote (hosted only)*/
|
||||||
$action = request()->input('action');
|
$action = request()->input('action');
|
||||||
|
|
||||||
$ids = request()->input('ids');
|
$ids = request()->input('ids');
|
||||||
|
@ -37,7 +37,7 @@ class CanAddUserRule implements Rule
|
|||||||
// ->count();
|
// ->count();
|
||||||
|
|
||||||
// return $count < auth()->user()->company()->account->num_users;
|
// 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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -116,7 +116,7 @@ class CreateAccount
|
|||||||
$spaa9f78->fresh();
|
$spaa9f78->fresh();
|
||||||
|
|
||||||
if(Ninja::isHosted()){
|
if(Ninja::isHosted()){
|
||||||
nlog("welcome");
|
|
||||||
App::forgetInstance('translator');
|
App::forgetInstance('translator');
|
||||||
$t = app('translator');
|
$t = app('translator');
|
||||||
$t->replace(Ninja::transformTranslations($sp035a66->settings));
|
$t->replace(Ninja::transformTranslations($sp035a66->settings));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user