Skip to content

Commit f08da4c

Browse files
committed
rm feature gate
1 parent 03a74ba commit f08da4c

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

app/api/hiker_profile.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,6 @@ def get_profile(profile_id: int, user: User = Depends(authenticate)):
5151
def create_profile(payload: HikerProfileType, user: User = Depends(authenticate)):
5252
existing_count = db.session.query(HikerProfile).filter_by(user_id=user.id).count()
5353

54-
if not user.is_subscribed and existing_count >= 1:
55-
raise HTTPException(403, "Upgrade to Full Access to create multiple hiker profiles.")
56-
5754
is_default = True if existing_count == 0 else payload.is_default
5855

5956
if is_default:

app/api/trip.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def create(payload: TripType, user: User = Depends(authenticate)):
130130
except Exception:
131131
raise HTTPException(400, "Unable to create trip.")
132132

133-
if payload.location and payload.location.strip() and user.is_subscribed:
133+
if payload.location and payload.location.strip():
134134
new_trip.enrich_status = "pending"
135135
db.session.commit()
136136
db.session.refresh(new_trip)
@@ -165,7 +165,7 @@ def update(payload: TripUpdate, user: User = Depends(authenticate)):
165165
(payload.start_date and payload.start_date != old_start_date) or
166166
(payload.end_date and payload.end_date != old_end_date)
167167
)
168-
if trip.location and (location_changed or dates_changed) and user.is_subscribed:
168+
if trip.location and (location_changed or dates_changed):
169169
trip.enrich_status = "pending"
170170

171171
db.session.commit()

0 commit comments

Comments
 (0)