Permission returns false when not allow

pull/1/head
Grandschtroumpf 6 years ago
parent f1fee7a5d1
commit 63818a29e2
  1. 4
      src/app/ui/persmission-handler.js

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

Loading…
Cancel
Save