Move permissions to entry point in template