fix check permission

pull/3599/head
yann300 2 years ago
parent fcb4dbfa23
commit 43eaea3de9
  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) 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) { if (!allow) {
const warning = this.notAllowWarning(from, to, method) const warning = this.notAllowWarning(from, to, method)
this.call('notification', 'toast', warning) this.call('notification', 'toast', warning)

Loading…
Cancel
Save