From 8de5683d0657c61369638f458ae586a83baa6180 Mon Sep 17 00:00:00 2001 From: Ian Goodacre Date: Mon, 8 Jun 2020 00:07:51 +0000 Subject: [PATCH] Set isOwner in setup After page reload, isOwner sometimes has wrong value. Setting it after loading client-settings in setup fixes this. --- client/security.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/client/security.coffee b/client/security.coffee index 1f73465..e7b31f2 100644 --- a/client/security.coffee +++ b/client/security.coffee @@ -206,6 +206,7 @@ setup = (user) -> .then (response) -> if response.ok response.json().then (json) -> + window.isOwner = json.isOwner settings = json if settings.wikiHost dialogHost = settings.wikiHost