plugin for locking and unlocking documents