mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-29 14:59:30 -05:00
update: remove show_forum permission
This permission is used the same as the `read_topic` permission.
This commit is contained in:
@@ -37,11 +37,7 @@ class PostController extends Controller
|
||||
'forumPermissions',
|
||||
fn ($query) => $query
|
||||
->where('group_id', '=', auth()->user()->group_id)
|
||||
->where(
|
||||
fn ($query) => $query
|
||||
->where('show_forum', '!=', 1)
|
||||
->orWhere('read_topic', '!=', 1)
|
||||
)
|
||||
->where('read_topic', '!=', 1)
|
||||
)
|
||||
->select('id')
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user