Added unit tests fixed typos that came up during unit test running.
Specifically, checking whether an action is a template action (has no datastore_id). In this case in order to proceed with the authorization we use the user_id of the action as the owner for authorization purposes.
Added unit tests fixed typos that came up during unit test running. Specifically, checking whether an action is a template action (has no datastore_id). In this case in order to proceed with the authorization we use the user_id of the action as the owner for authorization purposes.