Secure app with user permissions; add specs to confirm permissions are configured correctly

identation again, for the whole method