Skip to content

Commit

Permalink
superuser has access
Browse files Browse the repository at this point in the history
  • Loading branch information
rasulkireev committed Dec 7, 2024
1 parent bc7038e commit be12004
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def current_state(self):

@property
def has_active_subscription(self):
return self.current_state in [ProfileStates.SUBSCRIBED, ProfileStates.CANCELLED]
return self.current_state in [ProfileStates.SUBSCRIBED, ProfileStates.CANCELLED] or self.user.is_superuser

@property
def number_of_active_projects(self):
Expand Down

0 comments on commit be12004

Please sign in to comment.