Check permissions for cli commands