In V5, there is a provision to share documents for users which effectively means that users who should not be allowed to share docs could even give rights to users who are unauthorized to view the documents.
Is there a way to limit who all can share the documents with others?
Assume a user with read-only permissions for a doctype.
Using Share, the user can assign themselves Write Access to a record by (1)going to the record (2) sharing the record with themselves and (3)while sharing, assign write permissions.
Then, the user will have write access to the record
I just replicated this on frappe 5.0.29.
EDIT:
I also disabled “share” permissions in “Doctype List” for this doctype for all roles. However, I can still share, which I believe is what Aditya is referring to above.
Yeah,Its basically a SECURITY BREACH…don’t know why this kind of
scenario was not thought out before the release of such a feature.
Make no mistake that this feature is indeed a pretty awesome feature but
the security should have been kept in mind.
Now I think SHARE RIGHT should only be applicable to those users who can
SET PERMISSIONS on the doctype. This ways it would be truly genuine and
inline with expectations.