public function membership_role_allows($roleID, $permission)
{
$filter['membershipRoleID'] = MySQL::SQLValue($roleID, MySQL::SQLVALUE_NUMBER);
$filter[$permission] = 1;
$columns[] = "membershipRoleID";
$table = $this->kga['server_prefix'] . "membershipRoles";
$result = $this->conn->SelectRows($table, $filter, $columns);
if ($result === false) {
return false;
}
return $this->conn->RowCount() > 0;
}