@@ -81,12 +81,12 @@ |
||
81 | 81 | { |
82 | 82 | $isPrivate = function ($query) use ($user) { |
83 | 83 | $query->where('visibility_level', '=', self::VISIBILITY_PRIVATE) |
84 | - ->where("{$this->tableName}.creator_id", '=', $user->id); |
|
84 | + ->where("{$this->tableName}.creator_id", '=', $user->id); |
|
85 | 85 | }; |
86 | 86 | |
87 | 87 | $whereVisible = function ($query) use ($isPrivate) { |
88 | 88 | $query->whereIn('visibility_level', [self::VISIBILITY_PUBLIC, self::VISIBILITY_LOGGED_IN]) |
89 | - ->orWhere($isPrivate); |
|
89 | + ->orWhere($isPrivate); |
|
90 | 90 | }; |
91 | 91 | |
92 | 92 | return $query->where($whereVisible); |