From ec036a6266d4f7ea1bc3907161a43b3deb5b7ba8 Mon Sep 17 00:00:00 2001 From: Ross Date: Fri, 14 Nov 2025 21:16:55 +0000 Subject: [PATCH] Add open_access field to Resource model for access control --- atlas/models.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/atlas/models.py b/atlas/models.py index b0af8bfd..4026107f 100644 --- a/atlas/models.py +++ b/atlas/models.py @@ -1893,6 +1893,11 @@ class Resource(models.Model, AuthorMixin): help_text='Subspecialty or subspecialties this resource relates to.', ) + open_access = models.BooleanField( + default=True, + help_text="If true the resource is available to all users, otherwise only in the context of cases." + ) + def __str__(self) -> str: return self.name