X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=sidebyside;f=classes%2Fpluser.php;h=57656558a05361d20b0232de2660acae75b12f03;hb=feb45d1d9fc152beff746c83048ff7704cc27ea2;hp=187f131a63df7ad38b74c38ec7c6bbe1ad26642a;hpb=7e001f68b7928d80ccf32b8a8bca55d304476d3e;p=platal.git diff --git a/classes/pluser.php b/classes/pluser.php index 187f131..5765655 100644 --- a/classes/pluser.php +++ b/classes/pluser.php @@ -1,6 +1,6 @@ hruid; } + public function isMe($other) + { + if (!$other) { + return false; + } else if ($other instanceof PlUser) { + return $other->id() == $this->id(); + } else { + return false; + } + } + public function bestEmail() { if (!empty($this->bestalias)) {