Commit 63818a29 authored by Grandschtroumpf's avatar Grandschtroumpf

Permission returns false when not allow

parent f1fee7a5
...@@ -114,13 +114,13 @@ export class PermissionHandler { ...@@ -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)
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment