diff --git a/include/class.dept.php b/include/class.dept.php
index 0eae779c9eb13f19c225f0c2ff6e15d366fb28b2..13be8ff7e6551512f1e096b81d15f1dfd828a950 100644
--- a/include/class.dept.php
+++ b/include/class.dept.php
@@ -180,6 +180,14 @@ class Dept {
         return $this->manager;
     }
 
+    function isManager($staff) {
+
+        if(is_object($staff)) $staff=$staff->getId();
+
+        return ($this->getManagerId() && $this->getManagerId()==$staff);
+    }
+
+
     function isPublic() {
          return ($this->ht['ispublic']);
     }