Commit c1b6565d authored by Jean-Noël Rouchon's avatar Jean-Noël Rouchon

Correctif sur le modele groupe pour utiliser les fonctions du module zimbra

parent cddfd4c8
......@@ -81,7 +81,7 @@ class Group
self.member << user unless self.is_member?(user)
users_email += "#{user.email} "
end
zimbra_adlm(self.name, users_email) unless self.name.include?("tous@")
Core::Zimbra::Helper.zimbra_adlm(self.name, users_email) unless self.name.include?("tous@")
return self.save
end
......@@ -94,12 +94,12 @@ class Group
self.member.delete(m) if m.id==id
end
end
zimbra_rdlm self.name, users_email unless self.name.include?("tous@")
Core::Zimbra::Helper.zimbra_rdlm self.name, users_email unless self.name.include?("tous@")
return self.save
end
def destroy
zimbra_ddl self.name
Core::Zimbra::Helper.zimbra_ddl self.name
return destroy_group self.dn
end
......
......@@ -26,8 +26,8 @@ module Core::Zimbra::Helper
zimbra_cd domain.name
puts "Création de la liste de diffusion tous@#{domain.name}"
zimbra_cdl_tous domain.name
puts "Préparation de la clé d'authentification de #{domain.name}"
set_preauthkey domain
#puts "Préparation de la clé d'authentification de #{domain.name}"
#set_preauthkey domain
end
def self.destroy_domain domain
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment