Mohith Devatte
Tera Sage

hello @GabeCardiff ,try this below script

getAuth();

function getAuth() {
    var user = new GlideRecord('sys_user');
    user.get(gs.getUserID());
    If(user.u_authorised == 'true' ||user.u_authorised == true ) {
       answer= true;
    }
else
{
 answer=false;
}
}

Hope this helps 

please mark my answer correct if this helps you

Thanks for the input Mohith, 

I seem to be getting an unexpected token error... I've tried altering some elements of the script to see if that shifts it, but it's still throwing up that error:

find_real_file.png

hey @GabeCardiff i think there is a small type over there

getAuth();

function getAuth() {
    var user = new GlideRecord('sys_user');
    user.get(gs.getUserID());
    if(user.u_authorised == 'true' || user.u_authorised == true ) {
       answer= true;
    }
else
{
 answer=false;
}
}

try this 

View solution in original post

Hey @Mohith Devatte , you are a gentleman and a scholar good sir! Thanks very much for your assistance on that, it's sincerely appreciated 🙂 

No problem Cardiff .

Happy to help

Have a great day ahead