Skip to content

Commit

Permalink
Remove role check
Browse files Browse the repository at this point in the history
  • Loading branch information
vidya-ram committed Oct 27, 2023
1 parent 19808eb commit 6167454
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions funnel/views/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ def template_switcher(templateargs):
class ProfileView(AccountViewMixin, UrlChangeCheck, UrlForView, ModelView):
@route('', endpoint='profile')
@render_with({'text/html': template_switcher}, json=True)
@requires_roles({'reader', 'admin'})
def view(self) -> ReturnRenderWith:
template_name = None
ctx = {}
Expand Down Expand Up @@ -252,7 +251,6 @@ def view(self) -> ReturnRenderWith:

@route('in/projects')
@render_with('user_profile_projects.html.jinja2', json=True)
@requires_roles({'reader', 'admin'})
def user_participated_projects(self) -> ReturnRenderWith:
if self.obj.is_organization_profile:
abort(404)
Expand All @@ -272,7 +270,6 @@ def user_participated_projects(self) -> ReturnRenderWith:
@route('in/submissions')
@route('in/proposals') # Legacy route, will be auto-redirected to `in/submissions`
@render_with('user_profile_proposals.html.jinja2', json=True)
@requires_roles({'reader', 'admin'})
def user_proposals(self) -> ReturnRenderWith:
if self.obj.is_organization_profile:
abort(404)
Expand Down

0 comments on commit 6167454

Please sign in to comment.