0001-forms-keep-manager-on-front-if-debug-x-is-given-2650.patch
wcs/forms/common.py | ||
---|---|---|
228 | 228 |
def _q_index(self): |
229 | 229 |
mine = self.check_auth() |
230 | 230 |
if not mine and not get_request().is_in_backoffice(): |
231 |
# access authorized but the form doesn't belong to the user; if the
|
|
231 |
# Access authorized but the form doesn't belong to the user; if the
|
|
232 | 232 |
# user has access to the backoffice, redirect. |
233 |
if get_request().user.can_go_in_backoffice(): |
|
233 |
# Unless ?debug=whatever is set. |
|
234 |
if get_request().user.can_go_in_backoffice() and not get_request().form.get('debug'): |
|
234 | 235 |
return redirect(self.filled.get_url(backoffice=True)) |
235 | 236 | |
236 | 237 |
get_logger().info('form %s - id: %s - view' % (self.formdef.name, self.filled.id)) |
237 |
- |