fix device auth check to latest device module changes
fix device auth check to latest device module changes

chaveiro/emoncms,emoncms/emoncms,emoncms/emoncms,chaveiro/emoncms,inverse/emoncms,chaveiro/emoncms,emoncms/emoncms,inverse/emoncms,inverse/emoncms,inverse/emoncms,emoncms/emoncms,emoncms/emoncms,chaveiro/emoncms