X-Git-Url: http://gitweb.michael.orlitzky.com/?p=mailshears.git;a=blobdiff_plain;f=lib%2Frm%2Fplugins%2Fagendav.rb;h=2b2952f01a9254e01331b7a663d632762b8eb0ea;hp=4cd179c655323070d71b01348a975a4a214047c0;hb=bd2dabf89ab277fbe315b05e6dfa839afb5ce5ef;hpb=e3826d8926e11763837a591986d453e9ef5d9dec diff --git a/lib/rm/plugins/agendav.rb b/lib/rm/plugins/agendav.rb index 4cd179c..2b2952f 100644 --- a/lib/rm/plugins/agendav.rb +++ b/lib/rm/plugins/agendav.rb @@ -9,13 +9,10 @@ class AgendavRm include RmPlugin - def delete_domain(domain) - # AgenDAV doesn't have a concept of domains. - end - def delete_account(account) # Delete the given username and any records in other tables # belonging to it. + raise NonexistentAccountError.new(account) if not user_exists(account) sql_queries = ['DELETE FROM prefs WHERE username = $1;'] sql_queries << 'DELETE FROM shared WHERE user_from = $1;'