Fix file permissions for SMB (read-only folders will be writeable) (#25301)
Fix file permissions for SMB (read-only folders will be writeable) (#25301)

* Fix file permissions for SMB (read-only folders will be writeable)

* Read-only folders won't be deletable

* Added comment for the read-only behaviour for folders

jbicha/server,pixelipo/server,jbicha/server,jbicha/server,pmattern/server,andreas-p/nextcloud-server,pixelipo/server,endsguy/server,Ardinis/server,endsguy/server,michaelletzgus/nextcloud-server,xx621998xx/server,michaelletzgus/nextcloud-server,endsguy/server,pixelipo/server,Ardinis/server,xx621998xx/server,andreas-p/nextcloud-server,nextcloud/server,Ardinis/server,Ardinis/server,andreas-p/nextcloud-server,xx621998xx/server,andreas-p/nextcloud-server,pmattern/server,xx621998xx/server,nextcloud/server,endsguy/server,whitekiba/server,whitekiba/server,andreas-p/nextcloud-server,pixelipo/server,whitekiba/server,jbicha/server,pmattern/server,pixelipo/server,xx621998xx/server,jbicha/server,whitekiba/server,pmattern/server,endsguy/server,Ardinis/server,nextcloud/server,pmattern/server,whitekiba/server,nextcloud/server,michaelletzgus/nextcloud-server,michaelletzgus/nextcloud-server