Mercurial > kallithea
diff pylons_app/controllers/admin/users.py @ 476:8ba65e4c4e4c celery
added journal icon and made active links in journal, fixed edit user bug when given wrong id
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Mon, 13 Sep 2010 13:02:20 +0200 |
parents | 3ed2d46a2ca7 |
children | 74b9bed279ae |
line wrap: on
line diff
--- a/pylons_app/controllers/admin/users.py Mon Sep 13 01:38:14 2010 +0200 +++ b/pylons_app/controllers/admin/users.py Mon Sep 13 13:02:20 2010 +0200 @@ -148,6 +148,8 @@ """GET /users/id/edit: Form to edit an existing item""" # url('edit_user', id=ID) c.user = self.sa.query(User).get(id) + if not c.user: + return redirect(url('users')) if c.user.username == 'default': h.flash(_("You can't edit this user since it's" " crucial for entire application"), category='warning')