Skip to content

Commit

Permalink
Merge pull request #818 from PlanetaTIC/11.0-FIX-saas_client-if_websi…
Browse files Browse the repository at this point in the history
…te_error_500_when_suspended

[11.0] [FIX] saas_client: Fix error 500 when client is suspended if website is installed
  • Loading branch information
Ivan Yelizariev authored Dec 18, 2018
2 parents b9e1b0f + 52d4865 commit cc8a307
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions saas_client/controllers/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,6 @@ def web_login(self, redirect=None, **kw):
suspended = param_model.sudo().get_param('saas_client.suspended', '0')
page_for_suspended = param_model.sudo().get_param('saas_client.page_for_suspended', '/')
if suspended == '1':
request.params['login_success'] = False
return werkzeug.utils.redirect(page_for_suspended, 303)
return super(SaaSClientLogin, self).web_login(redirect, **kw)

0 comments on commit cc8a307

Please sign in to comment.