Mercurial > psgxs
diff modules/mod_configure.js @ 47:0d3f18bb1d36
Remove usage of fdsq.js in modules.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Thu, 10 Mar 2011 16:13:49 +0100 |
parents | 023f767662d3 |
children | addbf6bbfaa8 |
line wrap: on
line diff
--- a/modules/mod_configure.js +++ b/modules/mod_configure.js @@ -35,7 +35,7 @@ exports.getConfigure = { if (!storage.existsNode(nodeID)) return makeError(response, errors.node_does_not_exist.n); - var affil = storage.getAffiliation(toBareJID(to), nodeID); + var affil = storage.getAffiliation(JID.toBare(to), nodeID); if (affil != 'super-owner' && affil != 'owner' && affil != 'publish-only') return makeError(response, errors.pub.publish.insufficient_privileges.n); @@ -89,7 +89,7 @@ exports.setConfigure = { if (!storage.existsNode(nodeID)) return makeError(response, errors.node_does_not_exist.n); - var affil = storage.getAffiliation(toBareJID(to), nodeID); + var affil = storage.getAffiliation(JID.toBare(to), nodeID); if (affil != 'super-owner' && affil != 'owner' && affil != 'publish-only') return makeError(response, errors.forbidden.n); @@ -137,7 +137,7 @@ exports.setConfigure2 = { if (!storage.existsNode(nodeID)) return makeError(response, errors.node_does_not_exist.n); - var affil = storage.getAffiliation(toBareJID(to), nodeID); + var affil = storage.getAffiliation(JID.toBare(to), nodeID); if (affil != 'super-owner' && affil != 'owner' && affil != 'publish-only') return makeError(response, errors.forbidden.n);