From 484e5f86caff9e3bc4c943ef1adf4e77ade35b9b Mon Sep 17 00:00:00 2001 From: Malibu Date: Tue, 17 Feb 2015 22:39:53 +0100 Subject: [PATCH] fgh --- SRC/app/User.php | 2 +- SRC/resources/views/admin.blade.php | 2 +- SRC/resources/views/navbar_signed.blade.php | 61 ++++++++++++++++++++- 3 files changed, 61 insertions(+), 4 deletions(-) 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