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

[sentry] Do not offer to edit privilege scope

The scope is automatically guesses by looking at the DB, table
and column name if not a URI.

The correct way to change it is to select URI or update the db.table.col
path of the privilege
Romain Rigaux 10 жил өмнө
parent
commit
9912d77

+ 1 - 2
apps/security/src/security/templates/hive.mako

@@ -77,8 +77,7 @@ ${ layout.menubar(section='hive') }
     </div>
 
     <div class="acl-block-section" data-bind="visible: showAdvanced" style="margin-top: 0">
-      <input type="text" data-bind="value: serverName" placeholder="serverName" style="margin-left: 6px">
-      <select data-bind="options: $root.availablePrivileges, select2: { update: $data.privilegeScope, type: 'scope'}" style="width: 100px"></select>
+      ${ _('Server') } <input type="text" data-bind="value: serverName" placeholder="serverName" style="margin-left: 6px">
     </div>
   <!-- /ko -->