Skip to content

Commit

Permalink
MDL-20639 fixed mnet security trouble - credit goes to Adrian Schlegel
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Nov 17, 2009
1 parent 3786d95 commit 279929d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mnet/lib.php
Expand Up @@ -458,9 +458,9 @@ function mnet_permit_rpc_call($includefile, $functionname, $class=false) {
h2s.hostid in ($id_list) AND h2s.hostid in ($id_list) AND
h2s.publish = '1'"; h2s.publish = '1'";


$permissionobj = record_exists_sql($sql); $permission = count_records_sql($sql);


if ($permissionobj === false && 'dangerous' != $CFG->mnet_dispatcher_mode) { if (!$permission && 'dangerous' != $CFG->mnet_dispatcher_mode) {
return RPC_FORBIDDENMETHOD; return RPC_FORBIDDENMETHOD;
} }


Expand Down

0 comments on commit 279929d

Please sign in to comment.