Fix issue where required permissions were not defined