@login_maybe_required
def home(request):
    if request.user.has_perm("execution.execute"):
        return redirect("runtests")
    return redirect("results_runs")
Home view; redirects to run-tests or results depending on permissions.
dataset/ETHPy150Open mozilla/moztrap/moztrap/view/views.py/home