fix check permission

pull/5370/head
yann300 2 years ago
parent 498eec92e2
commit b4ce3ce6e8
  1. 2
      apps/remix-ide/src/app/plugins/permission-handler-plugin.tsx

@ -93,7 +93,7 @@ export class PermissionHandlerPlugin extends Plugin {
if (!this.permissions[to.name][method][from.name]) return this.openPermission(from, to, method, message, sensitiveCall)
}
const { allow, hash } = this.permissions[to.name][method][from.name]
const { allow, hash } = sensitiveCall ? this.sessionPermissions[to.name][method][from.name] : this.permissions[to.name][method][from.name]
if (!allow) {
const warning = this.notAllowWarning(from, to, method)
this.call('notification', 'toast', warning)

Loading…
Cancel
Save