TheThingsArchive / ttn

The Things Network Stack V2
https://www.thethingsnetwork.org
MIT License
461 stars 276 forks source link

handler.SetDevice can not clear RegisterOnJoinAccessKey #656

Closed htdvisser closed 7 years ago

htdvisser commented 7 years ago

As GetApplication only returns the key if the user has sufficient rights, the SetApplication RPC does not change the key if it's called with an empty ("") value for the key. However, it should also check if the user had sufficient rights to get the key, and unset the key.