##// END OF EJS Templates
throw 404s on empty show functions in ADMIN controllers
marcink -
r3731:21412a6c beta
parent child Browse files
Show More
@@ -38,7 +38,7 b' from rhodecode.lib.auth import LoginRequ'
38 from rhodecode.lib.base import BaseController, render
38 from rhodecode.lib.base import BaseController, render
39 from rhodecode.model.forms import DefaultPermissionsForm
39 from rhodecode.model.forms import DefaultPermissionsForm
40 from rhodecode.model.permission import PermissionModel
40 from rhodecode.model.permission import PermissionModel
41 from rhodecode.model.db import User, UserIpMap
41 from rhodecode.model.db import User, UserIpMap, Permission
42 from rhodecode.model.meta import Session
42 from rhodecode.model.meta import Session
43
43
44 log = logging.getLogger(__name__)
44 log = logging.getLogger(__name__)
@@ -154,6 +154,7 b' class PermissionsController(BaseControll'
154 def show(self, id, format='html'):
154 def show(self, id, format='html'):
155 """GET /permissions/id: Show a specific item"""
155 """GET /permissions/id: Show a specific item"""
156 # url('permission', id=ID)
156 # url('permission', id=ID)
157 Permission.get_or_404(-1)
157
158
158 def edit(self, id, format='html'):
159 def edit(self, id, format='html'):
159 """GET /permissions/id/edit: Form to edit an existing item"""
160 """GET /permissions/id/edit: Form to edit an existing item"""
@@ -221,6 +221,7 b' class UsersController(BaseController):'
221 def show(self, id, format='html'):
221 def show(self, id, format='html'):
222 """GET /users/id: Show a specific item"""
222 """GET /users/id: Show a specific item"""
223 # url('user', id=ID)
223 # url('user', id=ID)
224 User.get_or_404(-1)
224
225
225 def edit(self, id, format='html'):
226 def edit(self, id, format='html'):
226 """GET /users/id/edit: Form to edit an existing item"""
227 """GET /users/id/edit: Form to edit an existing item"""
General Comments 0
You need to be logged in to leave comments. Login now