app/soc/views/models/user_self.py
changeset 612 3cca81b1e5a1
parent 611 2ec30182e5f1
child 630 0ac985fd8efa
--- a/app/soc/views/models/user_self.py	Sat Nov 29 18:30:58 2008 +0000
+++ b/app/soc/views/models/user_self.py	Sat Nov 29 19:00:03 2008 +0000
@@ -129,17 +129,17 @@
       kwargs: The Key Fields for the specified entity
     """
 
-    try:
-      self.checkAccess('editSelf', request)
-    except out_of_band.Error, error:
-      return error.response(request, template=self.EDIT_SELF_TMPL)
-
     new_params = {}
     new_params['edit_template'] = self.EDIT_SELF_TMPL
 
     params = dicts.merge(params, new_params)
     params = dicts.merge(params, self._params)
 
+    try:
+      access.checkAccess('editSelf', request, params['rights'])
+    except out_of_band.Error, error:
+      return error.response(request, template=self.EDIT_SELF_TMPL)
+
     account = users.get_current_user()
     properties = {'account': account}