Made commands disabled by default and avoid making it possible to re-enable it if not allowed. Cached the "command allowed" check.
Minor fix to the cmd#checkAllowed + docs.
Merge branch 't/10072' into major