diff --git a/symposion/teams/urls.py b/symposion/teams/urls.py index 8445eed5..abe78033 100644 --- a/symposion/teams/urls.py +++ b/symposion/teams/urls.py @@ -2,5 +2,5 @@ from django.conf.urls.defaults import * urlpatterns = patterns("symposion.teams.views", - url(r"^(\w+)/$", "team_detail", name="team_detail"), + url(r"^([\w\-]+)/$", "team_detail", name="team_detail"), ) diff --git a/symposion/teams/views.py b/symposion/teams/views.py index de657b31..52cbfb23 100644 --- a/symposion/teams/views.py +++ b/symposion/teams/views.py @@ -9,7 +9,7 @@ from symposion.teams.models import Team @login_required def team_detail(request, slug): team = get_object_or_404(Team, slug=slug) - if team.get_state_for_user(request.user) != "manager": + if team.access == "invitation" and team.get_state_for_user(request.user) is None: raise Http404() return render(request, "teams/team_detail.html", { diff --git a/symposion_project/templates/dashboard.html b/symposion_project/templates/dashboard.html index eefe7cc5..170ae704 100644 --- a/symposion_project/templates/dashboard.html +++ b/symposion_project/templates/dashboard.html @@ -148,11 +148,12 @@ {% available_teams as available_teams %} {% if available_teams %}