While trying to create an action on a trigger getting
Response: {"jsonrpc"=>"2.0", "error"=>
{"code"=>-32500, "message"=>"Application error.", "data"=>"[ CAction::create ] No permissions !"}, "id"=>66484}
error, unless the user is super admin.
This happens because of an error in check_permission_for_action_conditions function in the frontends/php/include/actions.inc.php file. The check says "switch($ac_data['type'])" there, but the right name for this param according to api description and the rest of the source is "conditiontype".
The workaroud is to set both "type" and "conditiontype" vars to contain the same value.