Bug Netto in Card to Brutto
This commit is contained in:
parent
ebac67b81f
commit
8cae2f92a4
7 changed files with 254 additions and 159 deletions
|
|
@ -7,6 +7,7 @@ namespace App\Http\Controllers;
|
|||
use App\Models\UserAccount;
|
||||
use App\Repositories\UserRepository;
|
||||
use App\User;
|
||||
use Auth;
|
||||
use Illuminate\Support\Facades\Mail;
|
||||
use Input;
|
||||
use Illuminate\Http\Request;
|
||||
|
|
@ -82,4 +83,13 @@ class AdminUserController extends Controller
|
|||
|
||||
}
|
||||
|
||||
|
||||
public function userLoginAs($userId){
|
||||
if(Auth::user()->isSuperAdmin()){
|
||||
$user = User::find($userId);
|
||||
Auth::login($user);
|
||||
return redirect('/home');
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue