adjutant/stacktask
Amelia Cordwell 607cc93d67 Added auto approval as part of actions
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
2017-04-20 09:00:54 +12:00
..
actions Added auto approval as part of actions 2017-04-20 09:00:54 +12:00
api Added auto approval as part of actions 2017-04-20 09:00:54 +12:00
notifications Fixing Notification Engines 2016-12-21 00:33:41 +13:00
startup Refactor of action structure 2017-04-19 18:42:13 +12:00
__init__.py Some cleanup of documentation and licenses 2016-02-19 14:51:09 +13:00
exceptions.py Refactor action names and structure 2016-10-04 16:41:14 +01:00
middleware.py Refactor action validation functions 2016-11-07 14:22:22 +13:00
settings.py Restructure of the actions configuration 2017-04-19 19:06:33 +12:00
test_settings.py better manageable roles 2017-04-19 19:10:06 +12:00
urls.py Core library requirements update 2016-08-09 12:02:42 +01:00
utils.py Restructure of the actions configuration 2017-04-19 19:06:33 +12:00
wsgi.py Refinements for Signup 2016-09-26 17:19:26 +01:00