changed grantAdminAccess function name to accessGranted