From ebf2486c94e837bb897621c8416cf8f5b8739f2b Mon Sep 17 00:00:00 2001
From: Martin Mares <mj@ucw.cz>
Date: Sat, 16 Jan 2021 18:50:20 +0100
Subject: [PATCH] rights: fixup!

---
 mo/rights.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/mo/rights.py b/mo/rights.py
index 40a72a75..a76b9687 100644
--- a/mo/rights.py
+++ b/mo/rights.py
@@ -230,6 +230,7 @@ class Gatekeeper:
                 for role in self.roles:
                     try_role(role, at)
 
+        self.rights_cache[cache_key] = rights
         return rights
 
     def rights_generic(self):
-- 
GitLab