Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Walter Felipe
submeta
Commits
05aab7ed
"app/git@sites.upe.br:walter.felipe/submeta.git" did not exist on "c061666d3eb1bd2435f25f951fa181d35212db5f"
Commit
05aab7ed
authored
Jul 20, 2022
by
GuilhermeGz
Browse files
Verificação do usuario ao acessar a tela de visualização da proposta
parent
c55e02c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/TrabalhoController.php
View file @
05aab7ed
...
...
@@ -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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment