diff options
-rw-r--r-- | coip/apps/userprofile/views.py | 5 |
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): |