I'm working on code that has <cfset request.aut...
# cfml-beginners
f
I'm working on code that has <cfset request.authorized_people = '50649211,5076246,5060552'> then it has <cfif NOT listFindNoCase(request.authorized_people,GetAuthUser())> <cfabort> </cfif> how can I allow everybody? I have to see who these accounts belong to
b
how can I allow everybody?
Comment out the cfabort 😉
f
I thought so, but I got a 304 error. I think.I can go on the vpn and check
I may ask again tomorrow. listFindNoCase is confusing
The error I got was The webpage at https://www.wcl.american.edu/admiss/da/xls.cfm might be temporarily down or it may have moved permanently to a new web address.ERR_INVALID_RESPONSE when I commented out the <cfabort>
@bdw429s
s
is there perhaps some code after the commented out cfabort that relies on the GetAuthUser() actually being one of those 3 ids?
f
I don't believe so. I ran the page locally with command box/lucee but the server is ACF 2011.
I domn't know who any other those ID's are. They most likely arent here anymore
If <cfcontent type="application/msexcel"> was in the code, but now excel file was available, would that cause the error?
s
yes, if there isn't an actual valid excel output, then I think you would get that ERR_INVALID_RESPONSE
try temporarily commenting out that cfcontent tag and see what the output is
you may just need to add some conditional logic to check if the excel file exists, and if it doesn't then show a "file doesn't exist" message or something
f
👍