I see the 2 functions below in spjs.dffs. Can these be used in our JS code, or are these back-end only?
I have tried to use, but they are not working as I expect.
Is there a certain syntax for each if these can be used in our JS to check for a user role? Or do we have to use the DFFS rules for these? All of our logic is JS, so preferably, we’d like these user checks within our JS as well.