call target's checkAction() method for all kind of actions
This commit is contained in:
		
							parent
							
								
									a2f8410496
								
							
						
					
					
						commit
						24966cefa7
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
					@ -564,7 +564,8 @@ class NodeView(BaseView):
 | 
				
			||||||
    actions = dict(portlet=getPortletActions)
 | 
					    actions = dict(portlet=getPortletActions)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def checkAction(self, name, category, target):
 | 
					    def checkAction(self, name, category, target):
 | 
				
			||||||
        if name in ('create_resource',) and target is not None:
 | 
					        #if name in ('create_resource',) and target is not None:
 | 
				
			||||||
 | 
					        if target is not None:
 | 
				
			||||||
            return target.checkAction(name, category, target)
 | 
					            return target.checkAction(name, category, target)
 | 
				
			||||||
        return super(NodeView, self).checkAction(name, category, target)
 | 
					        return super(NodeView, self).checkAction(name, category, target)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue