소스 검색

#4784 Group based modules: site admin should be able to see closed/secret groups cover

Alex Trofimov 2 년 전
부모
커밋
7d57e4cd1a
1개의 변경된 파일과 1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      modules/base/profile/classes/BxBaseModProfileModule.php

+ 1 - 1
modules/base/profile/classes/BxBaseModProfileModule.php

@@ -1742,7 +1742,7 @@ class BxBaseModProfileModule extends BxBaseModGeneralModule implements iBxDolCon
         $CNF = &$this->_oConfig->CNF;
 
         // check privacy
-        if (empty($CNF['OBJECT_PRIVACY_VIEW'])) 
+        if (empty($CNF['OBJECT_PRIVACY_VIEW']) || isAdmin() || CHECK_ACTION_RESULT_ALLOWED === $this->checkAllowedEditAnyEntry())
             return CHECK_ACTION_RESULT_ALLOWED;
 
         $oPrivacy = BxDolPrivacy::getObjectInstance($CNF['OBJECT_PRIVACY_VIEW']);