wip
This commit is contained in:
1 parent
155177045b
commit
51a195e657
6 files changed
+70
-36
No files matched your search
@@ -65,18 +65,6 @@ class EventResource extends Resource
|
||||
->where('sport_id', auth()->user()->sport_id)
|
||||
->where('starttime', '>=', now());
|
||||
|
||||
if (auth()->user()->filter_stars) {
|
||||
$query->whereHas('event_user_star');
|
||||
}
|
||||
|
||||
if (auth()->user()->filter_notes) {
|
||||
$query->whereHas('event_user_note');
|
||||
}
|
||||
|
||||
if (auth()->user()->filter_notification) {
|
||||
$query->whereHas('event_user_notification');
|
||||
}
|
||||
|
||||
if (auth()->user()->all_only_none > 0) {
|
||||
switch (auth()->user()->all_only_none) {
|
||||
case 1:
|
||||
|
||||
Reference in new issue
Block a user