update: remove show_forum permission

This permission is used the same as the `read_topic` permission.
This commit is contained in:
Roardom
2024-02-10 01:18:41 +00:00
parent fc92660444
commit f30dec4a0c
30 changed files with 37 additions and 131 deletions
+1 -5
View File
@@ -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')
)