Problem with WebDAV permissions

Nextcloud version : 21.0.0
Operating system and version : TrueNas Core
PHP version : 7.4.16

The issue you are facing:
I am using Nextcloud on my NAS and it’s working perfectly fine, both locally and through the web interface. I have a setup where there are 2 user groups : an admin one with permissions to read/write/edit/delete and a public one with only read permissions. As I said it’s working perfectly fine through the web interface (When a user in the admin group connects, it can do everything and when a user in the public group connects, it can only read files).

Now, I want people to be able to access Nextcloud through the WebDAV interface (http://examplenextcloudurl.com/remote.php/dav/files/user/). But, through there, no matter which user I use to connect, everyone has all the rights (read/write/edit/delete). Even though the public users can only read files through the web interface, they can do anything through the WebDAV one…

I’m hoping someone can help.

Is this the first time you’ve seen this error? : Yes