Skip to content

Commit bf557c0

Browse files
committed
Revert "Issues-381: optimized code for adding comments/discussions"
This reverts commit d3c3147.
1 parent 0fe13f4 commit bf557c0

File tree

4 files changed

+71
-229
lines changed

4 files changed

+71
-229
lines changed

config/vanilla/bootstrap.before.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,8 @@ function watchButton($categoryID) {
374374
* @return bool return true if user has a permission
375375
*/
376376
function checkGroupPermission($userID,$groupID, $categoryID = null , $permissionCategoryID = null , $permission = null, $fullMatch = true) {
377-
return GroupModel::checkPermission($userID,$groupID, $categoryID,$permissionCategoryID , $permission, $fullMatch);
377+
$groupModel = new GroupModel();
378+
return $groupModel->checkPermission($userID,$groupID, $categoryID,$permissionCategoryID , $permission, $fullMatch);
378379
}
379380
}
380381

0 commit comments

Comments
 (0)