From 452e02167570ad21847fc1237b9319dd91b7f6a6 Mon Sep 17 00:00:00 2001 From: chove Date: Thu, 24 Feb 2005 02:01:41 +0100 Subject: [PATCH] www-data a le droit de modifier les machines du crans darcs-hash:20050224010141-4ec08-675f7d2222a0487b9329d4c47a5d373040d62ce1.gz --- gestion/ldap_crans.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gestion/ldap_crans.py b/gestion/ldap_crans.py index 87261636..55a779eb 100755 --- a/gestion/ldap_crans.py +++ b/gestion/ldap_crans.py @@ -2077,7 +2077,7 @@ class machine(base_classes_crans) : Enregistre la machine courante dans la base LDAP Retourne une chaîne indiquant les opération effectuées. """ - if self.proprietaire().__class__ == crans and not isadm : + if self.proprietaire().__class__ == crans and not ( isadm or user_tests.getuser() == 'www-data' ) : raise EnvironmentError(u'Il faut être administrateur pour effectuer cette opération.') if not self._init_data :