From 1e5a3d5ea50ac574755f5519b25001f11bf379b6 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Tue, 19 May 2015 09:36:20 +0930 Subject: [PATCH] Give all users guest permissions as well --- framework/core/src/Core/Models/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/core/src/Core/Models/User.php b/framework/core/src/Core/Models/User.php index 001e54e6e..03dfe9e3c 100755 --- a/framework/core/src/Core/Models/User.php +++ b/framework/core/src/Core/Models/User.php @@ -450,7 +450,7 @@ class User extends Model */ public function permissions() { - return Permission::whereIn('group_id', $this->groups->lists('id')); + return Permission::whereIn('group_id', array_merge([Group::GUEST_ID], $this->groups->lists('id'))); } /**