From 63818a29e2783d422db851334b10698dfea27d3d Mon Sep 17 00:00:00 2001 From: Grandschtroumpf Date: Mon, 22 Jul 2019 16:22:39 +0200 Subject: [PATCH] Permission returns false when not allow --- src/app/ui/persmission-handler.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/ui/persmission-handler.js b/src/app/ui/persmission-handler.js index 8c38d3aa47..dc8206a24e 100644 --- a/src/app/ui/persmission-handler.js +++ b/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) } }