607cc93d67
In actions pre-approve stage the function self.set_auto_approve() can be called, to identify the action as one that is allowed to be pre-approved. (True, False and None can be specified). If the function has not been called when auto_approve is accessed it will default to None. This is saved as a new attribute in the actions model. At the task layer before process_actions finishes, it checks to see the status of it's actions auto_approve. If none of these are False and at least one of them is True it will auto approve if all of it's actions have auto_approve set to true, if so instead of returning it it will run (and return the values of) the approve function. ResetPassword is the only pre-approved action that has not been switched to this way, due to possible security implications, as it would return 'actions invalid' if the user did not exist. Change-Id: I678849d212b7e91de541120e0d70ddf08cf9b488 |
||
---|---|---|
.. | ||
actions | ||
api | ||
notifications | ||
startup | ||
__init__.py | ||
exceptions.py | ||
middleware.py | ||
settings.py | ||
test_settings.py | ||
urls.py | ||
utils.py | ||
wsgi.py |