Mercurial > kallithea
diff rhodecode/controllers/admin/users.py @ 3731:21412a6c3854 beta
throw 404s on empty show functions in ADMIN controllers
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Tue, 09 Apr 2013 15:52:22 +0200 |
parents | 08cf7741e5e1 |
children | 87e6960e250b |
line wrap: on
line diff
--- a/rhodecode/controllers/admin/users.py Tue Apr 09 15:39:45 2013 +0200 +++ b/rhodecode/controllers/admin/users.py Tue Apr 09 15:52:22 2013 +0200 @@ -221,6 +221,7 @@ def show(self, id, format='html'): """GET /users/id: Show a specific item""" # url('user', id=ID) + User.get_or_404(-1) def edit(self, id, format='html'): """GET /users/id/edit: Form to edit an existing item"""