private static boolean mergeAllowed ( Element child , IAuthorizationPrincipal ap ) throws AuthorizationException { if ( ! child . getTagName ( ) . equals ( "channel" ) ) return true ; String channelPublishId = child . getAttribute ( "chanID" ) ; return ap . canRender ( channelPublishId ) ; }
Tests to see if channels to be merged from ILF can be rendered by the end user . If not then they are discarded from the merge .