Update permissions

This needs to be reworked in a better way