# HG changeset patch # User Goffi # Date 1450690296 -3600 # Node ID 2c9b227dd5800fcd7be7a5a2b9e0181b96c98816 # Parent d7c1daaf2deab8c1fe8588edf7522dff57ebedaf mod_privilege: fixed module import which was causing SALS issues diff -r d7c1daaf2dea -r 2c9b227dd580 mod_privilege/mod_privilege.lua --- 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