Give all users guest permissions as well

This commit is contained in:
Toby Zerner 2015-05-19 09:36:20 +09:30
parent 9fd5995703
commit 1e5a3d5ea5

View File

@ -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')));
}
/**