public static bool CheckManageListPermission(NodeType nodeType, Node targetNode)
{
//silent error handling
if (nodeType == null || targetNode == null)
return true;
return (!nodeType.IsInstaceOfOrDerivedFrom("ContentList") && !nodeType.IsInstaceOfOrDerivedFrom("Workspace")) || targetNode.Security.HasPermission(PermissionType.ManageListsAndWorkspaces);
}