Fix checkPermission problem

This little patch fixes the call SecurityUtil::checkPermission($component, $instance, $level, $user != 0) for the case the user is NOT logged in. It used always the rules for unregistered users.