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
a5c6815f
Unverified
Commit
a5c6815f
authored
Aug 22, 2022
by
GuilhermeGz
Committed by
GitHub
Aug 22, 2022
Browse files
Merge pull request #567 from GuilhermeGz/master
Ajuste na validação da rota de relatórios
parents
6ee26c41
fad45c80
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/ArquivoController.php
View file @
a5c6815f
...
@@ -133,7 +133,9 @@ class ArquivoController extends Controller
...
@@ -133,7 +133,9 @@ class ArquivoController extends Controller
$arquivos
=
[];
$arquivos
=
[];
if
(
Auth
::
user
()
->
id
!=
$trabalho
->
proponente
->
user
->
id
){
if
(
Auth
::
user
()
->
id
!=
$trabalho
->
proponente
->
user
->
id
&&
Auth
::
user
()
->
tipo
!=
'administrador'
&&
Auth
::
user
()
->
tipo
!=
'coordenador'
){
return
redirect
()
->
back
();
return
redirect
()
->
back
();
}
}
...
...
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