Update esAdmin Estandar
Signed-off-by: cgonzalesmo <cgonzalesmo@unsa.edu.pe>
This commit is contained in:
parent
8c1922e5d6
commit
85bafed88b
@ -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",
|
||||||
|
Loading…
Reference in New Issue
Block a user