Pass action id to permission check.
Merge pull request #1445 from cmfcmf/workflow-fix

Pass action id to permission check.