Skip to content

Commit

Permalink
73728 remove unnecessary help url checks using groups_length
Browse files Browse the repository at this point in the history
  • Loading branch information
csmith-he committed Sep 19, 2024
1 parent 2536316 commit c03774e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arches/app/views/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,8 @@ class BaseManagerView(TemplateView):
template_name = ""

def help_url_based_on_user(self, user):
groups_length = len(user.groups.all())
guest_filter = user.groups.filter(name='Guest').exists()
if groups_length == 1 and guest_filter == True:
if guest_filter == True:
return settings.BASIC_HELP_LINK
else:
return settings.ADVANCED_HELP_LINK
Expand Down

0 comments on commit c03774e

Please sign in to comment.