Fix dependency & build
checkCommandAllowed for commands coming from API