Update estandar 2.0 (esEncargado)
This commit is contained in:
parent
e5c61a4981
commit
df30926bdb
@ -77,7 +77,7 @@ public function showEstandar($id)
|
||||
public function updateEstandar(Request $request, $id)
|
||||
{
|
||||
$id_user = auth()->user();
|
||||
if ($id_user->isEncargado() || $id_user->isAdmin()) {
|
||||
if ($id_user->isEncargadoEstandar($id) || $id_user->isAdmin()) {
|
||||
$estandar = Estandar::find($id);
|
||||
$estandar->name = isset($request->name) ? $request->name : $estandar->name;
|
||||
$estandar->cabecera = isset($request->cabecera) ? $request->cabecera : $estandar->cabecera;
|
||||
|
Loading…
Reference in New Issue
Block a user