Эх сурвалжийг харах

HUE-9096 [doc] Display link perms in the sharing modal

Romain 6 жил өмнө
parent
commit
b09b3f19d2

+ 1 - 1
desktop/core/src/desktop/api2.py

@@ -653,7 +653,7 @@ def share_document(request):
 @require_POST
 def share_document_link(request):
   """
-  Globally activate of de-activate access to the document to logged-in users.
+  Globally activate of de-activate access to a document for logged-in users.
 
   Example of input: {'name': 'link_read', 'is_link_on': true}
   """

+ 4 - 0
desktop/core/src/desktop/js/ko/components/ko.shareDocModal.js

@@ -35,6 +35,10 @@ const TEMPLATE = `
   <div class="modal-body" style="overflow: visible; height: 240px">
 
     <!-- ko if: window.HAS_LINK_SHARING -->
+    Has Link sharing on: <span data-bind="text: $parent.definition().perms.link_sharing_on"></span>
+    Has Link Read: <span data-bind="text: $parent.definition().perms.link_read"></span>
+    Has link Write: <span data-bind="text: $parent.definition().perms.link_write"></span>
+
     <a href="javascript:void(0)"  title="${ I18n(
       'Share the query selection via a link'
     ) }">