Commit 05aab7ed authored by GuilhermeGz's avatar GuilhermeGz
Browse files

Verificação do usuario ao acessar a tela de visualização da proposta

parent c55e02c9
......@@ -381,6 +381,9 @@ class TrabalhoController extends Controller
// return back()->withErrors(['Proposta não encontrada!']);
// }
$projeto = Trabalho::find($id);
if(Auth::user()->id != $projeto->proponente->user->id){
return redirect()->back();
}
$edital = Evento::find($projeto->evento_id);
$grandeAreas = GrandeArea::all();
$areas = Area::all();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment