diff --git a/SRC/app/User.php b/SRC/app/User.php index c560329..93a4a08 100755 --- a/SRC/app/User.php +++ b/SRC/app/User.php @@ -17,6 +17,6 @@ class User extends Model { public function scopeReferents($query) { - return $query->where('admin', '0'); + return $query->where('droits', '0'); } } diff --git a/SRC/resources/views/admin.blade.php b/SRC/resources/views/admin.blade.php index 134c72d..e9f852a 100755 --- a/SRC/resources/views/admin.blade.php +++ b/SRC/resources/views/admin.blade.php @@ -33,7 +33,7 @@ {{$user->lastname}} {{$user->email}} {{$user->city}} - @if ($user->admin == 0) + @if ($user->droits == 0) Référent @else Admin diff --git a/SRC/resources/views/navbar_signed.blade.php b/SRC/resources/views/navbar_signed.blade.php index 45f125e..a171363 100755 --- a/SRC/resources/views/navbar_signed.blade.php +++ b/SRC/resources/views/navbar_signed.blade.php @@ -12,8 +12,65 @@ - \ No newline at end of file + + + + + \ No newline at end of file