feat: auto reject empty properties (#1794)

Tested that having the config option set to 1 and having an empty property auto-rejected it.  Tested that having a model on the property or having the new config option set to 0 auto approved the property (as per live)
This commit is contained in:
David Markowitz
2025-05-07 21:15:10 -07:00
committed by GitHub
parent b6f7b4c092
commit e18c504ee4
3 changed files with 12 additions and 4 deletions

View File

@@ -135,7 +135,7 @@ public:
* Updates whether or not this property is approved by a moderator
* @param value true if the property should be approved, false otherwise
*/
void UpdateApprovedStatus(bool value);
void UpdateApprovedStatus(bool value, const std::string& rejectionReason = "");
/**
* Loads all the models on this property from the database