Skip to content

Commit 2fc4b7f

Browse files
authored
Merge pull request #420 from topcoder-platform/issues-381
Issues-381: optimized code for adding comments/discussions
2 parents e21d142 + b96b498 commit 2fc4b7f

File tree

5 files changed

+2649
-71
lines changed

5 files changed

+2649
-71
lines changed

config/vanilla/bootstrap.before.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -374,8 +374,7 @@ 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-
$groupModel = new GroupModel();
378-
return $groupModel->checkPermission($userID,$groupID, $categoryID,$permissionCategoryID , $permission, $fullMatch);
377+
return GroupModel::checkPermission($userID,$groupID, $categoryID,$permissionCategoryID , $permission, $fullMatch);
379378
}
380379
}
381380

0 commit comments

Comments
 (0)