Help with accessing worksheets simultaneously

I need some help related to a nextcloud issue, where I want it to block access/editing more than one user at a time in an xls, xlsx, dm, ocs file, in short, the extensions that I allow, that is if one person is using it, the other will not be able to access it, or it will be in read-only mode, is there a way for me to block this by ubuntu? or by the nextcloud itself? and I use webdav access, is there a way to block it along with it too?

There seems to be an app for that: