Explorar el Código

#1689 When profile status isn't 'active' then hide any profile content: admins block in group bases modules

Alex Trofimov hace 4 años
padre
commit
db1ff6bf2c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      modules/base/groups/classes/BxBaseModGroupsDb.php

+ 1 - 1
modules/base/groups/classes/BxBaseModGroupsDb.php

@@ -136,7 +136,7 @@ class BxBaseModGroupsDb extends BxBaseModProfileDb
         if($iLimit > 0)
             $sLimitClause = " LIMIT " . (int)$iStart . ", " . (int)$iLimit;
 
-        return $this->getColumn("SELECT `fan_id` FROM `" . $CNF['TABLE_ADMINS'] . "` WHERE 1" . $sWhereClause . $sLimitClause, $aBindings);
+        return $this->getColumn("SELECT `fan_id` FROM `" . $CNF['TABLE_ADMINS'] . "` INNER JOIN `sys_profiles` as `p` ON (`p`.`id` = `fan_id` AND `p`.`status` = 'active') WHERE 1" . $sWhereClause . $sLimitClause, $aBindings);
     }
 
     public function getRole($iGroupProfileId, $iProfileId)