Index: lib/class.tx_damcatedit_cm.php =================================================================== --- lib/class.tx_damcatedit_cm.php (révision 11768) +++ lib/class.tx_damcatedit_cm.php (copie de travail) @@ -27,8 +27,8 @@ * @author David Steeb (david@b13.de) * @author Benjamin Mack (benni@b13.de) */ +require_once(PATH_txdam.'lib/class.tx_dam_db.php'); - class tx_damcatedit_cm { var $rec; // the current record (as an array) that was clicked var $backRef; // clickMenu object, see typo3/alt_clickmenu.php @@ -56,8 +56,8 @@ if (is_array($this->rec) || $root) { - $lCP = $GLOBALS['BE_USER']->calcPerms(t3lib_BEfunc::getRecord('pages', $this->rec['pid'])); - + $lCP = $GLOBALS['BE_USER']->calcPerms(t3lib_BEfunc::getRecord('pages', $root ? tx_dam_db::getPid() : $this->rec['pid'])); + // Edit if(!$root && ($GLOBALS['BE_USER']->isPSet($lCP, $table, 'edit')) && !in_array('edit',$this->backRef->disabledItems)) { $menuItems['edit'] = $this->DAMcatEdit($table,$uid);