Update esAdmin Estandar

Signed-off-by: cgonzalesmo <cgonzalesmo@unsa.edu.pe>
This commit is contained in:
cgonzalesmo 2022-12-05 23:55:35 -05:00
parent 8c1922e5d6
commit 85bafed88b

View File

@ -60,6 +60,7 @@ public function showEstandar($id)
$user = User::find($estandar->id_user); $user = User::find($estandar->id_user);
$estandar->user = $user; $estandar->user = $user;
$estandar->esEncargado = ($user->id == auth()->user()->id); $estandar->esEncargado = ($user->id == auth()->user()->id);
$estandar->esAdmin = auth()->user()->isAdmin();
return response([ return response([
"status" => 1, "status" => 1,
"msg" => "!Estandar", "msg" => "!Estandar",