X-Git-Url: http://git.datanom.net/qtadmin.git/blobdiff_plain/8335f35a34539c3d782c804cfc692ab5117ffda2..3039de292a8f75426d4b2c0ea70a00b75bda5b02:/lib/utils.inc.php diff --git a/lib/utils.inc.php b/lib/utils.inc.php index 9c6be9b..0b9fe70 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,16 @@ class Utils { return $user; } + public function authorized($recipient) { + $authorized = false; + + if ($this->isAdmin() || $this->getUser() == $recipient) { + $authorized = true; + } + + return $authorized; + } + public function getHeader() { $this->log("getHeader", 4);