kakitangan harian
This commit is contained in:
@@ -15,7 +15,7 @@ class Khazanah
|
||||
*/
|
||||
public function handle($request, Closure $next)
|
||||
{
|
||||
if(Auth::check() && Auth::user()->roles == 'khazanah'){
|
||||
if(Auth::check() && (Auth::user()->roles == 'pc' || Auth::user()->roles == 'ppc')){
|
||||
return $next($request);
|
||||
}
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ class Penilai
|
||||
*/
|
||||
public function handle($request, Closure $next)
|
||||
{
|
||||
if(Auth::check() && Auth::user()->roles == 'penilai'){
|
||||
if(Auth::check() && Auth::user()->role_harian == 'penilai'){
|
||||
return $next($request);
|
||||
}
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ class Teller
|
||||
*/
|
||||
public function handle($request, Closure $next)
|
||||
{
|
||||
if(Auth::check() && Auth::user()->roles == 'teller'){
|
||||
if(Auth::check() && Auth::user()->role_harian == 'teller'){
|
||||
return $next($request);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user