Stop wizard execution if access denied for issue1491
This commit is contained in:
1 parent
ad177f242e
commit
35a35c367b
1 file changed
+4
-1
@@ -188,7 +188,10 @@ class Wizard(object):
|
||||
res = rpcprogress.run()
|
||||
except Exception, exception:
|
||||
common.process_exception(exception, parent)
|
||||
# Continue by running previous result
|
||||
# Continue by running previous result except if access to
|
||||
# wizard is denied
|
||||
if exception.args[0] == 'AccessDenied':
|
||||
break
|
||||
if not res:
|
||||
if dia:
|
||||
res = {'type': 'form'}
|
||||
|
||||
Reference in new issue
Block a user