/[drupal]/contributions/modules/xmpp_server/xmpp_server.module
ViewVC logotype

Diff of /contributions/modules/xmpp_server/xmpp_server.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.5, Thu Sep 25 21:55:22 2008 UTC revision 1.6, Fri Sep 26 00:45:41 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: xmpp_server.module,v 1.4 2008/09/25 08:23:37 t0talmeltd0wn Exp $  // $Id: xmpp_server.module,v 1.5 2008/09/25 21:55:22 t0talmeltd0wn Exp $
3    
4  $xmpp_server_xml_router = array();  $xmpp_server_xml_router = array();
5    
# Line 162  function _xmpp_server_is_callback_allowe Line 162  function _xmpp_server_is_callback_allowe
162      if($rules['protocol'] && $rules['protocol'] != $client->protocol) {      if($rules['protocol'] && $rules['protocol'] != $client->protocol) {
163        return FALSE;        return FALSE;
164      }      }
165    
166        if ($rules['permissions']) {
167          foreach ($rules['permissions'] as $perm) {
168            $acct->uid = $session['uid'];
169            if (!user_access($perm, $acct, TRUE)) {
170              return false;
171            }
172          }
173        }
174    }    }
175    
176    //If our tag doesn't match the node's tag, return false.    //If our tag doesn't match the node's tag, return false.

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.2