Adjust the code for the new permissions data structure