I hawe a question about request variables I took o...
# cfml-beginners
f
I hawe a question about request variables I took over code, and it has this line <cfset request.authorized_people = '99991aaaa,999zzzz,99991xx,9918zzz'> which is a list of user ID's that are allowed to access the website. request authorized people is not a function, is it? It just seems arbitrary
d
its a variable being set on every request for that page.
f
but i'm trying to find the function where it only allows those people, maybe in Appllcation.cfm?
d
keep searching is there is another way that variable can change. but that cfset code is setting that variable to those users every time. Maybe that variable is empty before that line is executed, and maybe that variable is changed after that line.
you want to share your screen and I can help you. I've got a little bit of time right now. I can message you a zoom link.
j
What kind of IDE/code editor are you using? Do a global search for "request.authorized_people" or even just "authorized_people" just in case someone forgot to properly scope their variables everywhere. (Though I'm sure that never actually happens, right?)
f
can't now i'm in a huddle
d
tell them you have "Support" calling you
f
@joechastain well i have to ssh into that serve, so vi or nano :)
d
I see your application file code, keep searching. I mean keep searching.
ssh copy all those app files to your computer. then you can work a lot faster.
f
I usually do but quick edits are with nano/pico
j
You can ssh with VS Code using the Remote Development extension - https://code.visualstudio.com/docs/remote/remote-overview
f
awesome thanks for that!
d
I thought you were in a huddle? lol
f
it's over..
i was showing someone how get into remote desktop
d
Well I don't want to help you anymore, unless you have website files on your local computer. lol
f
i do
i'm doing 3 things are once
our whole IT department is on strike
d
I believe it