]> git.datanom.net - qtadmin.git/blobdiff - lib/utils.inc.php
Enhance security
[qtadmin.git] / lib / utils.inc.php
index 0b9fe701e4a17199b9807c8e44f39e7363c91457..5832d291f0638948b38572152e1b9659c91c30e1 100644 (file)
@@ -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;
     }
This page took 0.036382 seconds and 5 git commands to generate.