• exec/tests/webmail/api.js kit.js webmail/lib/api.js

    From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Sun Nov 22 12:19:51 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/755ca30a725ccbdb7ed3bf78
    Modified Files:
    exec/tests/webmail/api.js kit.js webmail/lib/api.js
    Log Message:
    WebMail: refuse a guest by User.is_guest alone

    The sign-in check refused an account when User.is_guest was true or it
    had the G restriction, but is_guest is user_is_guest(): user number 0
    or the G restriction. The second test checked the same bit again.

    It survived because the API test's fake users set is_guest on their
    own: GUEST_FLAG had the G restriction with is_guest false, a state a
    real User object cannot be in. The fakes (api.js and kit.js) now read
    is_guest from the G restriction when asked, as the real object does,
    so GUEST_FLAG is an ordinary-looking account with G set and is still
    refused, and a G restriction added during a session still ends it.

    UD.UFLAG_G, no longer used, is dropped from the bits api.js defines.

    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net