# HG changeset patch # User Matthew Wild # Date 1369313648 -3600 # Node ID 7e060edbb54890e6ad72d7a920601c3929815030 # Parent 28e3257d2ae575e8c854eb3f4ffeb06b13762b16 mod_data_access: is_admin() takes a JID, not a username (fixes admin access to data stores) diff -r 28e3257d2ae5 -r 7e060edbb548 mod_data_access/mod_data_access.lua --- a/mod_data_access/mod_data_access.lua Wed May 22 12:40:55 2013 +0100 +++ b/mod_data_access/mod_data_access.lua Thu May 23 13:54:08 2013 +0100 @@ -86,7 +86,7 @@ if user_host ~= path_items[1] or user_node ~= path_items[2] then -- To only give admins acces to anything, move the inside of this block after authz --module:log("debug", "%s wants access to %s@%s[%s], is admin?", authed_user, p_user, p_host, p_store) - if not is_admin(user_node, p_host) then + if not is_admin(authed_user, p_host) then return 403; end end