From d7d7d59f47f01a13a40b39a59808f3af950d3ce5 Mon Sep 17 00:00:00 2001 From: Ian Goodacre Date: Tue, 16 Jun 2020 21:06:55 +0000 Subject: [PATCH] Set isOwner true in claim_wiki After successfully claiming a wiki the client didn't recognize the wiki as owned until it was reloaded. With this change, the client recognizes the wiki is owned immediately upon a successful claim. --- client/security.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/client/security.coffee b/client/security.coffee index e7b31f2..5d18bed 100644 --- a/client/security.coffee +++ b/client/security.coffee @@ -36,6 +36,7 @@ claim_wiki = () -> response.json().then (json) -> ownerName = json.ownerName window.isClaimed = true + window.isOwner = true update_footer ownerName, true else console.log 'Attempt to claim site failed', response