X-Git-Url: http://git.datanom.net/qtadmin.git/blobdiff_plain/60aad80e946dc086047ad7871f4e6d0db41e4777..56c841014682b373b486d3627ce1ea1f37403ff1:/lib/utils.inc.php diff --git a/lib/utils.inc.php b/lib/utils.inc.php index 9c6be9b..197b26f 100644 --- a/lib/utils.inc.php +++ b/lib/utils.inc.php @@ -25,7 +25,7 @@ class Utils {
'; private $footer = '
'; + '; private $heading = '

Session timeout:

__TITLE__

'; @@ -314,6 +314,19 @@ class Utils { return $user; } + public function authorized($recipient) { + $authorized = false; + + $this->log("authorized '$recipient'", 3); + + if ($this->isAdmin() || $this->getUser() == $recipient) { + $authorized = true; + } + $this->log("authorize '".$this->getUser()."' rcpt '$recipient'", 3); + + return $authorized; + } + public function getHeader() { $this->log("getHeader", 4);