Commit 56689bde authored by Florian Duguet's avatar Florian Duguet Committed by hydrargyrum
Browse files

[caisseepargne] return empty list if user is not allowed to have subscription

parent 03f98a17
......@@ -973,7 +973,10 @@ def iter_subscription(self):
# some users don't have checking account
assert self.subscription.is_here()
if not self.subscription.is_here():
# if user is not allowed to have subscription we are redirected to IndexPage
assert self.home.is_here() and
return []
......@@ -825,6 +825,9 @@ def go_subscription(self):
form['__EVENTARGUMENT'] ='Ajax", "(.*)", true', link).group(1)
def is_subscription_unauthorized(self):
return 'non autorisée' in CleanText('//div[@id="MM_ContentMain"]')(self.doc)
def go_pro_transfer_availability(self):
form = self.get_form(id='main')
form['__EVENTTARGET'] = 'Menu_AJAX'
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment