DNN-5943 - security permission check are not done for discar and complete first workflow state