The JS documentation (jsobjs.html) says the user object is an instance of the User class representing the current user online. I've used user.compare_ars() in some of my JS scripts, as it sounded like it would apply to the current user running the script. Yesterday I just noticed the documentation for user.compare_ars() seems to have been updated, and now it says "Note: For the current user o fthe terminal server, use bbs.compare_ars() instead." I'm a little unclear on what exactly "the current user of the terminal server" means, and how that is different from the "current user online", as it says for the user object?
The documentation for bbs.compare_ars() says it verifies "the current user online" meets the Access Requirements String. It says the user object is also supposed to be the current user online, correct?
bbs.compare_ars() can take the current terminal server session into account (e.g. terminal capabilties, temp-sysop capabilities), where as user.compare_ars() cannot.
Correct. But the User.compare_ars() method is not identical to the bbs.compare_ars() method, so if your interested in the current terminal server user, it's best to use bbs.compare_ars() instead. --
|Nodes:||10 (0 / 10)|