Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions app/Http/Controllers/Gallery/SharingController.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,9 @@ public function listAll(ListAllSharingRequest $request): Collection
fn ($q) => $q->whereIn('base_album_id', BaseAlbumImpl::select('id')
->where('owner_id', '=', Auth::id()))
);
$query = $query->whereNotNull(APC::USER_ID);
$query = $query->orWhereNotNull(APC::USER_GROUP_ID);
$query = $query->where(fn ($q) =>
$q->whereNotNull(APC::USER_ID)
->orWhereNotNull(APC::USER_GROUP_ID));
$query = $query->orderBy('base_album_id', 'asc');

return AccessPermissionResource::collect($query->get());
Expand Down
Loading