Add permissions check to hub command