From 1d00b0314b734a48dd0191ab835065fde6adcbdd Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 20 Jul 2009 08:11:02 +0000 Subject: [PATCH] Fix: Some change to fix pb of editing password of a user by linking a member to it. --- htdocs/adherents/fiche.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/htdocs/adherents/fiche.php b/htdocs/adherents/fiche.php index e20526f9e70..153e8f2e17d 100644 --- a/htdocs/adherents/fiche.php +++ b/htdocs/adherents/fiche.php @@ -61,9 +61,6 @@ if ($rowid) // Define variables to know what current user can do on users $canadduser=($user->admin || $user->rights->user->user->creer); - $canreadpermsuser=($user->admin || $user->rights->user->user->lire); - $caneditpermsuser=($user->admin || $user->rights->user->user->creer); - $candisablepermsuser=($user->admin || $user->rights->user->user->supprimer); // Define variables to know what current user can do on properties of user linked to edited member if ($adh->user_id) { @@ -82,8 +79,6 @@ if ($rowid) { $caneditfieldmember=( (($user->id == $adh->user_id) && $user->rights->adherent->self->creer) || (($user->id != $adh->user_id) && $user->rights->adherent->creer) ); - $caneditpasswordmember=( (($user->id == $adh->user_id) && $user->rights->adherent->self->password) - || (($user->id != $adh->user_id) && $user->rights->adherent->password) ); }