nextcloud / files_lock

GNU Affero General Public License v3.0
24 stars 8 forks source link

Enable unlocking by anyone #102

Closed biva closed 1 year ago

biva commented 1 year ago

Hello, thank you for your great app.

My use case is the following: we use templates in our organisations, that should usually not be modified. In order to avoid an accidental modification, we'd like to protect it. Locking them is a good solution. Unfortunately, only the user who locked the file can unlock it.

In our situation, it is necessary that anybody can unlock the file, so that anybody can modify the template (but this time, not by mistake, but because the template should be improved for example).

How could we achieve that? Is it possible to add an admin option to enable this possibility? Is it possible to create a new "lock" type, which would be a "lock (unlock open to any user)"?

Thanks a lot!