|  | @@ -186,7 +186,7 @@ class ContentApi(object):
 | 
	
		
			
			| 186 | 186 |          if workspace:
 | 
	
		
			
			| 187 | 187 |              result = result.filter(Content.workspace_id==workspace.workspace_id)
 | 
	
		
			
			| 188 | 188 |  
 | 
	
		
			
			| 189 |  | -        if self._user and workspace and not self._disable_user_workspaces_filter:
 | 
	
		
			
			|  | 189 | +        if self._user and not self._disable_user_workspaces_filter:
 | 
	
		
			
			| 190 | 190 |              user = DBSession.query(User).get(self._user_id)
 | 
	
		
			
			| 191 | 191 |              # Filter according to user workspaces
 | 
	
		
			
			| 192 | 192 |              workspace_ids = [r.workspace_id for r in user.roles \
 |