X-Git-Url: http://gitweb.michael.orlitzky.com/?p=mailshears.git;a=blobdiff_plain;f=lib%2Fcommon%2Fagendav_plugin.rb;h=88de0d79ded0ca11897f1fbf4a60bf0162db2d92;hp=fad869f95235964884d58635a465d670cde7b455;hb=70aeee01ccb126dcfd6ea12f98d9df9c6b3e7a45;hpb=e3826d8926e11763837a591986d453e9ef5d9dec diff --git a/lib/common/agendav_plugin.rb b/lib/common/agendav_plugin.rb index fad869f..88de0d7 100644 --- a/lib/common/agendav_plugin.rb +++ b/lib/common/agendav_plugin.rb @@ -20,7 +20,7 @@ module AgendavPlugin def describe_domain(domain) # AgenDAV doesn't have a concept of domains. - return 'N/A' + return domain end @@ -35,12 +35,8 @@ module AgendavPlugin protected; - def user_exists(account) - ad_users = get_agendav_usernames() - return ad_users.include?(account) - end - def get_agendav_usernames() + def list_users() usernames = [] # Just assume PostgreSQL for now.