Check permissions for abort and command commands [FIXED JENKINS-16232]