public function isBanned(Am_Record $record) { if ($this->getGroupMode() == Am_Protect_Databased::GROUP_NONE) { return false; } return (bool) array_intersect((array) $this->_table->getGroups($record), $this->getBannedGroups()); }