Removed subquery from Project#allowed_to_condition