{"extended":{"hasExtended":true,"docs":"
compareTo() <!--- Load a user requested in the URL/form and restrict access if it doesn't match the user stored in the session --->\n<cfset user = model("user").findByKey(params.key)>\n<cfif not user.compareTo(session.user)>\n <cfset renderPage(action="accessDenied")>\n</cfif>"},"hint":"Pass in another Wheels model object to see if the two objects are the same.","returntype":"","slug":"compareto","parameters":[],"name":"compareTo","availableIn":{},"tags":{"categoryClass":"","sectionClass":"","category":"","section":""}}