Add permissions to import and export themes (see #5835)