Changeset

1018:7e060edbb548

mod_data_access: is_admin() takes a JID, not a username (fixes admin access to data stores)
author Matthew Wild <mwild1@gmail.com>
date Thu, 23 May 2013 13:54:08 +0100
parents 1017:28e3257d2ae5
children 1019:7cba8be42d9e
files mod_data_access/mod_data_access.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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