mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-21 17:28:31 -05:00
add: group forum categories on topic editing page
This commit is contained in:
@@ -198,7 +198,13 @@ class TopicController extends Controller
|
||||
['show_forum', '=', 1],
|
||||
['start_topic', '=', 1],
|
||||
])
|
||||
->where('parent_id', '!=', 0)
|
||||
->where('parent_id', '=', 0)
|
||||
->with([
|
||||
'forums' => fn ($query) => $query->whereRelation('permissions', [
|
||||
['show_forum', '=', 1],
|
||||
['start_topic', '=', 1],
|
||||
])
|
||||
])
|
||||
->get();
|
||||
|
||||
return view('forum.topic.edit', [
|
||||
|
||||
Reference in New Issue
Block a user