summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2011-08-15 10:54:02 +0200
committerLeif Johansson <leifj@sunet.se>2011-08-15 10:54:02 +0200
commit36dad4f8b67948daef92257cea362c5d772279e3 (patch)
tree4c0981bc2cf805c0beec80f981bc35492dcebc18
parentb3ce5191ae14df73eab5b6a1602281a6b84d721f (diff)
home is default name
-rw-r--r--coip/apps/userprofile/views.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/coip/apps/userprofile/views.py b/coip/apps/userprofile/views.py
index 5829fc3..7ce8f74 100644
--- a/coip/apps/userprofile/views.py
+++ b/coip/apps/userprofile/views.py
@@ -51,11 +51,12 @@ def home(request):
profile.home = home
home.save()
add_member(home,profile.user,hidden=True)
- home.setacl(home,"rwlda") #don't allow users to delete or reset acls on their home, nor invite members - that would be confusing as hell
+ home.setpacl(home, "rwlida")
+ home.setacl(home,"rwla") #don't allow users to delete or reset acls on their home, nor invite members - that would be confusing as hell
names = [(link.src,link.data) for link in NameLink.objects.filter(dst__memberships__user=request.user,type=NameLink.access_control,data__contains='i').all()]
- return respond_to(request, {'text/html': 'apps/userprofile/home.html'},{'memberships': memberships,'names': names})
+ return respond_to(request, {'text/html': 'apps/userprofile/home.html'},{'memberships': memberships,'names': names, 'name': home})
@login_required
def search(request):