anchor.diff:  	<cfargument name="statusid" type="string" required="false" default=""/>
   	<cfargument name="assetid" type="string" required="false" default=""/>
   	
  -<!---
   	<cftry>
  ---->
   		<cfquery datasource="cah" name="getFeedback">
   		SELECT * FROM feedback 
   		WHERE 	
  
positive.code: 	<cfargument name="type" type="string" required="true" default="NA"/>
  	<cfargument name="filter" type="string" required="false" default=""/>
  
  <!---
  	<cftry>
  --->
  		<cfquery datasource="cah" name="qryAssets">
  
  		<cfif arguments.type eq "user" >
  			SELECT * FROM cah.asset 
  			WHERE 	submitter = '#arguments.filter#'
  		<cfelseif arguments.type eq "open" >
  			SELECT 	*
  			FROM	cah.asset 
  			WHERE	(final_status IS NULL or
  					final_status = '')
  					and convert_status = 1
  		<cfelseif arguments.type eq "rejected" >
  			SELECT 	*
  			FROM	cah.asset 
  			WHERE	final_status = 'rejected'
  		<cfelseif arguments.type eq "accepted" >
  			SELECT 	*
  			FROM	cah.asset 
  			WHERE	final_status = 'accepted'
  		<cfelseif arguments.type eq "all" >
  			SELECT * FROM cah.asset 
  			WHERE 	convert_status = 1
  		<cfelseif arguments.type eq "unconverted" >
  			SELECT * FROM cah.asset 
  			WHERE 	convert_status = 0
  		<cfelse>
  			SELECT a.* FROM cah.asset a LEFT JOIN cah.approval b ON a.uuid = b.assetid
  			WHERE	(	a.final_status IS NULL or
  						a.final_status = '') AND 
  					a.submitter <> '#session.mura.userid#' 
  					and convert_status = 1
  				<cfif $.currentUser().isInGroup("Reviewer") >
  					AND a.uuid NOT IN  (	SELECT c.assetid FROM cah.approval c
  											WHERE 	c.assetid = a.uuid AND
  													c.reviewtype = 'peer' AND 
  													c.approver = '#session.mura.userid#')
  				<cfelseif $.currentUser().isInGroup("Developer") >
  		 			AND (	SELECT Count(*) FROM cah.approval c
  							WHERE 	c.assetid = a.uuid AND
  									c.reviewtype = 'peer') > 1 
  					GROUP BY a.uuid
  				</cfif>
  
  		</cfif>
  		
  		</cfquery>
  
  <!---
  		<cfcatch><cfrethrow><cfset qryAssets = QueryNew("none") /></cfcatch>		
  	</cftry>
  --->
  	<cfreturn qryAssets />
  </cffunction>
  
  
negative.code: </cffunction>
  
  <!--- // END Rollups // --->
  <cffunction name="allowLink" output="false" returntype="boolean">
  			<cfargument name="restrict" type="numeric"  default=0>
  			<cfargument name="restrictgroups" type="string" default="" />
  			<cfargument name="loggedIn"  type="numeric" default=0 />
  			<cfargument name="rspage"  type="query" />
  		
  			<cfset var allowLink = true>
  			<cfif  arguments.loggedIn and (arguments.restrict)>
  				<cfif 	arguments.restrictgroups eq '' or 
  						listFind(session.mura.memberships,'S2IsPrivate;#application.settingsManager.getSite(variables.event.getValue('siteID')).getPrivateUserPoolID()#') or 
  						listFind(session.mura.memberships,'S2')>
  					<cfset allowLink = true>
  				<!--- // Else condition hides restricted menu items from those not authorized // --->
  				<cfelseif arguments.restrictgroups neq ''>
  					<cfset allowLink = false>
  					<cfloop list="#arguments.restrictgroups#" index="G">
  						<cfif listFind(session.mura.memberships,'#G#;#application.settingsManager.getSite(variables.event.getValue('siteID')).getPublicUserPoolID()#;1')>
  							<cfset allowLink = true>
  						</cfif>
  					</cfloop>
  				</cfif>
  			<cfelseif !arguments.loggedin and arguments.restrict>
  				<cfset allowLink = false>
  			</cfif>
  			
  		<cfreturn allowLink>
  </cffunction>
  
  <!--- // Overloaded // --->
  
  <!--- // END Overloaded // --->
  
  </cfcomponent>
  