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 @@