Explorar o código

BugFix: PageGroupRelation.isExistsGrantedGroupForPageAndUser

Yuki Takei %!s(int64=8) %!d(string=hai) anos
pai
achega
4a6d1d7d21
Modificáronse 1 ficheiros con 0 adicións e 3 borrados
  1. 0 3
      lib/models/page-group-relation.js

+ 0 - 3
lib/models/page-group-relation.js

@@ -160,9 +160,6 @@ class PageGroupRelation {
     return this.findByPage(pageData)
       .then(pageRelation => {
         return UserGroupRelation.isRelatedUserForGroup(userData, pageRelation.relatedGroup);
-      })
-      .then(userGroupRelation => {
-        return userGroupRelation != null;
       });
   }