Minor fix to the cmd#checkAllowed + docs.