Skip to content

Commit

Permalink
Update feature flag check
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-skriabin committed Feb 3, 2025
1 parent 0cc2de8 commit 6d8ecf5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion label_studio/core/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ def main(request):
return redirect(reverse('user-login'))

# business mode access
if flag_set('fflag_all_feat_dia_1777_ls_homepage_short'):
if flag_set('fflag_all_feat_dia_1777_ls_homepage_short', user):
print('redirect to home page')
return render(request, 'home/home.html')

Check warning on line 60 in label_studio/core/views.py

View check run for this annotation

Codecov / codecov/patch

label_studio/core/views.py#L58-L60

Added lines #L58 - L60 were not covered by tests
else:
return redirect(reverse('projects:project-index'))

Check warning on line 62 in label_studio/core/views.py

View check run for this annotation

Codecov / codecov/patch

label_studio/core/views.py#L62

Added line #L62 was not covered by tests
Expand Down

0 comments on commit 6d8ecf5

Please sign in to comment.