fix: access crypto code properly and add admin permissions for supervisor cmds

This commit is contained in:
José Oliveira 2021-08-30 23:13:59 +01:00
parent db90525196
commit 01275a8c9b
3 changed files with 5 additions and 6 deletions

View file

@ -94,9 +94,9 @@ function setupCrypto (crypto) {
}
function updateCrypto (crypto) {
if (!common.isUpdateDependent(crypto.code)) return
if (!common.isUpdateDependent(crypto.cryptoCode)) return
const cryptoPlugin = plugin(crypto)
cryptoPlugin.updateCore(common.getBinaries(crypto))
cryptoPlugin.updateCore(common.getBinaries(crypto.cryptoCode))
}
function plugin (crypto) {