Hi frnds, <cffunction name="chkTAPrimaryAccess" access="public" returntype="numeric" description="This checks whether user is a primary TA owner"> <cfargument name="user_id" required="no" type="numeric" default="#url.skey4#"> <cfquery datasource="tatimesheet" name="qGetTAAccess" maxrows="2"> select primary_id, backup_id from ta_user_level where active=yes and primary_id = #arguments.user_id# </cfquery> <cfif qGetTAAccess.recordcount neq 0> <cfset access = 1> <cfelse> <cfset access = 0> </cfif> <cfreturn access> </cffunction>
in this function i am getting primary acces people and backup_id but iam allowing peolpe only if he is primary, if i want to access the back up people also then what i have to do, my frnd asked me to write custom tag for that, i am not gettign what to do can u suggest me........... ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324507 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4