Commit 7271cb7b authored by fred's avatar fred

allow all admins to manage all accounts

parent 14bf3889
......@@ -180,16 +180,13 @@ class m_admin {
global $err,$mem,$db,$cuid;
// DONE PATCHBEN Check that the current user is editing one of it's own account !
// but ADMIN (always uid 2000) is almighty
if ($cuid==2000) {
return true;
$db->query("SELECT creator FROM membres WHERE uid='$uid';");
if ($db->Record[creator]!=$cuid) {
return false;
return true;
// FRED, 2010-04-08, en fait modifié pour que tous les admins soient
// considérés comme créateurs des comptes, comme ça chacun/e peut
// assurer l'administration de ceux-ci.
if ($this->enabled == 1)
return true;
return false;
/* ----------------------------------------------------------------- */
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