mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
espiral y wireo
This commit is contained in:
@ -137,9 +137,13 @@ class Presupuestocliente extends \App\Controllers\BaseResourceController
|
||||
// Se obtiene el cliente ID a partir del usuario de la sesion
|
||||
$model_user = model('App\Models\Usuarios\UserModel');
|
||||
$user = $model_user->find(auth()->user()->id);
|
||||
$clienteId = $user->cliente_id;
|
||||
|
||||
|
||||
if(auth()->user()->inGroup('cliente-admin') || auth()->user()->inGroup('cliente-editor')){
|
||||
$clienteId = $user->cliente_id;
|
||||
}
|
||||
else{
|
||||
$clienteId = $presupuestoEntity->cliente_id;
|
||||
}
|
||||
|
||||
$this->viewData['formAction'] = 'edit';
|
||||
|
||||
$this->viewData['paisList'] = $this->getPaisListItems();
|
||||
|
||||
Reference in New Issue
Block a user