Great module! I think it would be advantageous to include a couple small features.
Considering there is already a content unlock field which can be used in views which can be used to include an unlock button/link for a given node in a row by producing a url to /admin/lock/break/node/[id]/en/* - how about the same to lock a node!
for example as url /admin/lock/set/node/[id] or /admin/lock/lock/node/[id]
With an additional permission or two, maybe something like 'unlock permanent locked content' and 'allow permanent lock of content'
Ideally this would be separate from edit lock-out because another user is editing - providing a statement if a user/role which used to be able to edit that specific piece of content can't because it is locked. Something like: This "content name: [title]" can no-longer be edited and has permanently been locked.
For example sake I have a content type called timesheets where users with role Employee can create and edit their timesheet for the duration of the week. Once a timesheet or all current timesheets are reviewed and submitted to pay-role (in my particular use case a user with role Owner will be looking at/getting the currents week employees timesheets via a custom view by printing to pdf and submitting them to the pay-role company) at the same time it would be great if the individual timesheets can then be locked from edit and delete.
If I had a URL I could pass either by button or a triggered action like bulk update that would be great. I peaked thru the module code and it's beyond my current capabilities to patch something like that in thus this feature request.
But also the ability on say the "content" overview page select a bunch of nodes and then a bulk lock and unlock would be great to.
These features alone in general could be quite useful just being able to permanently lock a node of any type for any reason!
Hopefully based on how this module already works this feature would be easy to incorporate.
- I suppose as a work around I could trigger node/edit open into a new page from the view as a link and close the page but I'd have to disable the lock timeout module which is useful for other content types on the same site that are updated by multiple users after creation and sometimes someone forgets they had it open - cause it's happened.
If there is anything else I can provide to help let me know!
Comments