Mercurial > public > src > rhodecode
diff pylons_app/controllers/users.py @ 239:b18f89d6d17f
Adde draft for permissions systems, made all needed decorators, and checks. For future usage in the system.
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sun, 30 May 2010 19:49:40 +0200 |
parents | a55c17874486 |
children | a83a1799480c |
line wrap: on
line diff
--- a/pylons_app/controllers/users.py Sun May 30 17:55:56 2010 +0200 +++ b/pylons_app/controllers/users.py Sun May 30 19:49:40 2010 +0200 @@ -4,7 +4,7 @@ from pylons.i18n.translation import _ from pylons_app.lib import helpers as h from pylons.controllers.util import abort, redirect -from pylons_app.lib.auth import LoginRequired +from pylons_app.lib.auth import LoginRequired, CheckPermissionAll from pylons_app.lib.base import BaseController, render from pylons_app.model.db import User, UserLog from pylons_app.model.forms import UserForm @@ -26,7 +26,8 @@ c.admin_user = session.get('admin_user') c.admin_username = session.get('admin_username') super(UsersController, self).__before__() - + + def index(self, format='html'): """GET /users: All items in the collection""" # url('users')