Introducing a service for future use as well so that such type of conditions can be handled in the future while keeping the code clean and easy to understand.
Set the restrictDateModification property in the core configuration to true to enforce date modification restrictions via the API; otherwise, the default behavior will allow unrestricted changes.
Fixes #2158
Type of change
Please delete options that are not relevant.
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Intermediate change (work in progress)
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Added it to an existing repository and tested it
Checklist:
[x] Performed a self-review of my own code
[x] npm test passes on your machine
[ ] New tests added or existing tests modified to cover all changes
[ ] Code conforms with the style guide
[x] API Documentation in code was updated
[ ] Any dependent changes have been merged and published in downstream modules
gh-2158
Description
restrict modification of createdon and modifiedon
with this the existing functionality will be same
Introducing a service for future use as well so that such type of conditions can be handled in the future while keeping the code clean and easy to understand.
Set the restrictDateModification property in the core configuration to true to enforce date modification restrictions via the API; otherwise, the default behavior will allow unrestricted changes.
Fixes #2158
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Added it to an existing repository and tested it
Checklist: