Index: branches/5.0.x/in-commerce/units/gateways/gw_event_handler.php =================================================================== diff -u -r12674 -r12722 --- branches/5.0.x/in-commerce/units/gateways/gw_event_handler.php (.../gw_event_handler.php) (revision 12674) +++ branches/5.0.x/in-commerce/units/gateways/gw_event_handler.php (.../gw_event_handler.php) (revision 12722) @@ -1,6 +1,6 @@ Application->IsAdmin()) return ; - $fh=opendir(GW_CLASS_PATH); + if (!$this->Application->isAdminUser) { + return ; + } + + $fh = opendir(GW_CLASS_PATH); + while( $entry=readdir($fh) ) { if ( !is_file(GW_CLASS_PATH.'/'.$entry) ) continue;