mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-05-02 00:10:02 -05:00
update: treat non existing permissions as denied
Otherwise, it causes 500 errors.
This commit is contained in:
@@ -34,7 +34,7 @@ class ForumCategoryController extends Controller
|
||||
}
|
||||
|
||||
// Check if the user has permission to view the forum
|
||||
if (!$forum->getPermission()->show_forum) {
|
||||
if (!$forum->getPermission()?->show_forum) {
|
||||
return to_route('forums.index')
|
||||
->withErrors('You Do Not Have Access To This Category!');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user