HUE-2026 [core] Create a doc model write permission

Improved sharing modal UX