Source

cruge / components / CrugeUi.php

Diff from to

components/CrugeUi.php

 	public function getRbacListOpsUrl(){
 		return CrugeUtil::uiaction('rbaclistops');
 	}
-	public function getRbacAuthItemCreateUrl($type){
+	// argumento extra es usado en CrugeAuthManager para crear
+	// tareas enlazadas a otras en forma de submenu, extra==authitem_parent.
+	public function getRbacAuthItemCreateUrl($type, $extra=''){
 		// aqui type es uno de los valores de 
 		// CAuthItem::TYPE_ROLE,CAuthItem::TYPE_TASK,CAuthItem::TYPE_OPERATION
-		return CrugeUtil::uiaction('rbacauthitemcreate',array('type'=>$type));
+		return CrugeUtil::uiaction('rbacauthitemcreate',
+			array('type'=>$type,'extra'=>$extra));
 	}
 	public function getRbacAuthItemDeleteUrl($id){
 		return CrugeUtil::uiaction('rbacauthitemdelete',array('id'=>$id));