Skip to content

Commit

Permalink
Audit comments are not required if that feature is not enabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
labkey-susanh committed Jan 24, 2024
1 parent c3d8eeb commit 8dbf05d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion api/src/org/labkey/api/data/Container.java
Original file line number Diff line number Diff line change
Expand Up @@ -1035,12 +1035,14 @@ public FolderType getFolderType()
public Boolean getAuditCommentsRequired()
{
Map<String, String> props = PropertyManager.getProperties(this, AUDIT_SETTINGS_PROPERTY_SET_NAME);
if (!AdminConsole.isProductFeatureEnabled(ProductFeature.DataChangeCommentRequirement))
return false;
return Boolean.parseBoolean(props.getOrDefault(REQUIRE_USER_COMMENTS_PROPERTY_NAME, "false"));
}

/**
* Sets the default module for a "mixed" type folder. We try not to create
* these any more. Instead each folder is "owned" by a module
* these anymore. Instead, each folder is "owned" by a module
*/
public void setDefaultModule(Module module)
{
Expand Down

0 comments on commit 8dbf05d

Please sign in to comment.