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

remove commented code