Fixing issues related to permissions across the app.