diff --git a/include/class.staff.php b/include/class.staff.php
index 778041e7ca6fd707d16b91b5f3a9a4669fe3076a..89fdda1b362d9c82125f411d9231aca12216d5fe 100644
--- a/include/class.staff.php
+++ b/include/class.staff.php
@@ -214,6 +214,13 @@ class Staff {
     function getDepts() {
         return $this->getDepartments();
     }
+
+    function getManagedDepartments() {
+
+        return ($depts=Dept::getDepartments(
+                    array('manager' => $this->getId())
+                    ))?array_keys($depts):array();
+    }
      
     function getGroupId() {
         return $this->ht['group_id'];