Ver código fonte

#1753 Post or Topic posted anonymously for friends can't be viewed by author

Alex Trofimov 8 anos atrás
pai
commit
e01baaf436

+ 1 - 1
modules/base/general/classes/BxBaseModGeneralModule.php

@@ -1095,7 +1095,7 @@ class BxBaseModGeneralModule extends BxDolModule
         $CNF = &$this->_oConfig->CNF;
 
         // moderator and owner always have access
-        if (!empty($iProfileId) && ((int)$aDataEntry[$CNF['FIELD_AUTHOR']] == (int)$iProfileId || $this->_isModerator($isPerformAction)))
+        if (!empty($iProfileId) && (abs($aDataEntry[$CNF['FIELD_AUTHOR']]) == (int)$iProfileId || $this->_isModerator($isPerformAction)))
             return CHECK_ACTION_RESULT_ALLOWED;
 
         // check ACL