Show More
@@ -131,6 +131,7 b' class UsersController(BaseController):' | |||||
131 | e = errors.error_dict or {} |
|
131 | e = errors.error_dict or {} | |
132 | perm = Permission.get_by_key('hg.create.repository') |
|
132 | perm = Permission.get_by_key('hg.create.repository') | |
133 | defaults.update({'create_repo_perm': user_model.has_perm(id, perm)}) |
|
133 | defaults.update({'create_repo_perm': user_model.has_perm(id, perm)}) | |
|
134 | defaults.update({'_method': 'put'}) | |||
134 | return htmlfill.render( |
|
135 | return htmlfill.render( | |
135 | render('admin/users/user_edit.html'), |
|
136 | render('admin/users/user_edit.html'), | |
136 | defaults=defaults, |
|
137 | defaults=defaults, | |
@@ -141,7 +142,6 b' class UsersController(BaseController):' | |||||
141 | log.error(traceback.format_exc()) |
|
142 | log.error(traceback.format_exc()) | |
142 | h.flash(_('error occurred during update of user %s') \ |
|
143 | h.flash(_('error occurred during update of user %s') \ | |
143 | % form_result.get('username'), category='error') |
|
144 | % form_result.get('username'), category='error') | |
144 |
|
||||
145 | return redirect(url('users')) |
|
145 | return redirect(url('users')) | |
146 |
|
146 | |||
147 | def delete(self, id): |
|
147 | def delete(self, id): |
General Comments 0
You need to be logged in to leave comments.
Login now