snikket-server/snikket-modules/mod_snikket_restricted_users
Matthew Wild 457096a13d mod_snikket_restricted_users: Don't isolate users with no roles
The code was originally written to fail safe in the event of failure, hence
the 'if roles and ...'. However a user with no roles (which is normal for a
normal user, especially on upgrade) can return nil.

Failure is signified by 'false', so now we explicitly catch this and return
early without bypassing isolation. Users with no roles (nil) or with roles
but not prosody:restricted bypass isolation.
2021-11-10 17:27:09 +00:00
..
mod_snikket_restricted_users.lua mod_snikket_restricted_users: Don't isolate users with no roles 2021-11-10 17:27:09 +00:00