Permission returns false when not allow

pull/3094/head
Grandschtroumpf 5 years ago
parent 05a808359a
commit 44ccf7372c
  1. 4
      src/app/ui/persmission-handler.js

@ -114,13 +114,13 @@ export class PermissionHandler {
if (!allow) {
const warning = notAllowWarning(from, to)
addTooltip(warning)
throw new Error(warning)
return false
}
return hash === from.hash
? true // Allow
: this.openPermission(from, to) // New version of a plugin
} catch (err) {
return false
throw new Error(err)
}
}

Loading…
Cancel
Save