adjutant/stacktask/actions/v1
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
..
tests better manageable roles 2017-04-19 19:10:06 +12:00
__init__.py Refactor of action structure 2017-04-19 18:42:13 +12:00
app.py Refactor of action structure 2017-04-19 18:42:13 +12:00
base.py Added auto approval as part of actions 2017-04-20 09:00:54 +12:00
models.py Refactor of action structure 2017-04-19 18:42:13 +12:00
projects.py Restructure of the actions configuration 2017-04-19 19:06:33 +12:00
resources.py Restructure of the actions configuration 2017-04-19 19:06:33 +12:00
serializers.py Restructure of the actions configuration 2017-04-19 19:06:33 +12:00
users.py Added auto approval as part of actions 2017-04-20 09:00:54 +12:00