mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
added label check on is_group item
This commit is contained in:
parent
fb81f4166f
commit
d0b827ccbb
1 changed files with 6 additions and 0 deletions
|
|
@ -196,6 +196,12 @@ class SettingObject:
|
|||
|
||||
self.key = self.schema_data["key"]
|
||||
|
||||
self.label = self.schema_data.get("label")
|
||||
if not self.label and self._is_group:
|
||||
raise ValueError(
|
||||
"Item is set as `is_group` but has empty `label`."
|
||||
)
|
||||
|
||||
@property
|
||||
def user_role(self):
|
||||
"""Tool is running with any user role.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue