This project is not covered by Drupal’s security advisory policy.
Period Lock locks content dated in closed accounting periods. Once a month is closed, nobody can create, edit or delete records dated in it, so the figures that were reported stay the figures in the system.
It was built for financial and administrative sites where Drupal entities record transactions, invoices or payments, and an accounting close must be respected.
Features
- Choose, per content type, the Date or Date range fields that decide which period a record belongs to. With several fields, the earliest date counts.
- One closing date: everything dated on or before it is locked.
- Two layers: entity access hides Edit and Delete and returns 403, and an entity validation constraint refuses new or moved records in closed periods wherever entities are validated (forms, REST, JSON:API).
- Optional "new records only" mode while a period is under review.
- Separate permissions to move the closing date forward, to reopen closed periods and to bypass the lock.
Requirements
Drupal 10.3 or later, or Drupal 11, and the core Datetime module. No contributed modules or libraries.
Similar modules
- Content Lock prevents two people from editing the same content at the same time.
- Content Freeze freezes editing for the whole site.
Period Lock is different: it locks records by their own dates, like an accounting close.
Project information
- Project categories: Access control, Content editing experience
- Created by aluisio.pulga on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.
Releases
1.0.0
released 26 November 2026
Works with Drupal: ^10.3 || ^11
First stable release: lock content in closed accounting periods.
Install:
