Mercurial > prosody-modules
diff mod_privilege/mod_privilege.lua @ 1989:2c9b227dd580
mod_privilege: fixed module import which was causing SALS issues
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 21 Dec 2015 10:31:36 +0100 |
parents | f719d5e6c627 |
children | c4da3d9f212d |
line wrap: on
line diff
--- a/mod_privilege/mod_privilege.lua Tue Dec 01 12:43:04 2015 +0100 +++ b/mod_privilege/mod_privilege.lua Mon Dec 21 10:31:36 2015 +0100 @@ -12,7 +12,7 @@ local set = require("util/set") local st = require("util/stanza") local roster_manager = require("core/rostermanager") -local user_manager = require("core/usermanager") +local usermanager_user_exists = require "core.usermanager".user_exists; local hosts = prosody.hosts local full_sessions = prosody.full_sessions; @@ -250,7 +250,7 @@ if session_privileges and _ROSTER_SET_PERM:contains(session_privileges.roster) then module:log("debug", "Roster set from allowed privileged entity received") -- following code is adapted from mod_remote_roster - if not(user_manager.user_exists(from_node, from_host)) then return; end + if not(usermanager_user_exists(from_node, from_host)) then return; end local roster = roster_manager.load_roster(from_node, from_host); if not(roster) then return; end