Unverified Commit 747135ac authored by GuilhermeGz's avatar GuilhermeGz Committed by GitHub
Browse files

Merge pull request #563 from GuilhermeGz/master

Ajuste no acesso ao perfil avaliador
parents 1b13e4ac aa6adb91
...@@ -4,6 +4,7 @@ namespace App\Http\Controllers; ...@@ -4,6 +4,7 @@ namespace App\Http\Controllers;
use App\Area; use App\Area;
use App\Arquivo; use App\Arquivo;
use App\AvaliacaoRelatorio;
use App\FuncaoParticipantes; use App\FuncaoParticipantes;
use App\GrandeArea; use App\GrandeArea;
use App\ParecerInterno; use App\ParecerInterno;
...@@ -54,8 +55,8 @@ class AvaliadorController extends Controller ...@@ -54,8 +55,8 @@ class AvaliadorController extends Controller
); );
public function index(){ public function index(){
$flagAvalRelatorio = count(AvaliacaoRelatorio::where('user_id',Auth::user()->id )->get());
return view('avaliador.index'); return view('avaliador.index', compact('flagAvalRelatorio'));
} }
public function editais(Request $request){ public function editais(Request $request){
......
...@@ -46,6 +46,7 @@ class HomeController extends Controller ...@@ -46,6 +46,7 @@ class HomeController extends Controller
} }
else if (Auth::user()->avaliadors != null) { else if (Auth::user()->avaliadors != null) {
$flagAvalRelatorio = count(AvaliacaoRelatorio::where('user_id',Auth::user()->id )->get()); $flagAvalRelatorio = count(AvaliacaoRelatorio::where('user_id',Auth::user()->id )->get());
dd($flagAvalRelatorio);
return view('avaliador.index', compact('flagAvalRelatorio')); return view('avaliador.index', compact('flagAvalRelatorio'));
} }
else if (Auth::user()->participantes != null) { else if (Auth::user()->participantes != null) {
......
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