Skip to content

Commit a3db17d

Browse files
committed
Add allowed-roles field to Protocol (#239)
- Also update db_dvc to include the allowed-roles field in each protocol
1 parent 9b26f46 commit a3db17d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/openlifu/plan/protocol.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ class Protocol:
4141
description: Annotated[str, OpenLIFUFieldData("Protocol description", "A more detailed description of the protocol")] = ""
4242
"""A more detailed description of the protocol"""
4343

44+
allowed_roles: Annotated[List[str], OpenLIFUFieldData("Allowed roles", "A list of user roles allowed to interact with this protocol")] = field(default_factory=list)
45+
"""A list of user roles allowed to interact with this protocol"""
46+
4447
pulse: Annotated[bf.Pulse, OpenLIFUFieldData("Pulse definition", "The pulse definition used in the protocol")] = field(default_factory=bf.Pulse)
4548
"""The pulse definition used in the protocol"""
4649

0 commit comments

Comments
 (0)