From 57be6c3afc99dcab1333c6140fa7840a81f56d8f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Valenta?= <git@imaniti.org>
Date: Mon, 1 May 2023 19:01:21 +0200
Subject: [PATCH] fix contract adding button

---
 users/models.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/users/models.py b/users/models.py
index e9332ea..64dee9b 100644
--- a/users/models.py
+++ b/users/models.py
@@ -33,7 +33,7 @@ class User(pirates_models.AbstractUser):
 
     @property
     def can_create_contracts(self) -> bool:
-        return self.has_perm("contracts.add")
+        return self.has_perm("contracts.add_contract")
 
     @property
     def can_view_confidential(self) -> bool:
-- 
GitLab