Update the code to use the already defined permissions