X-Git-Url: http://git.datanom.net/qtadmin.git/blobdiff_plain/3039de292a8f75426d4b2c0ea70a00b75bda5b02..24c77b7b310aefcb3c1b1ce4d02099e6f0cbfe84:/lib/utils.inc.php?ds=sidebyside diff --git a/lib/utils.inc.php b/lib/utils.inc.php index 0b9fe70..5832d29 100644 --- a/lib/utils.inc.php +++ b/lib/utils.inc.php @@ -317,9 +317,13 @@ class Utils { public function authorized($recipient) { $authorized = false; + $this->log("authorized '$recipient'", 3); + if ($this->isAdmin() || $this->getUser() == $recipient) { $authorized = true; } + $msg = ($authorized) ? 'authorize' : 'not authorize'; + $this->log("$msg '".$this->getUser()."' rcpt '$recipient'", 3); return $authorized; }