فهرست منبع

[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 سال پیش
والد
کامیت
9912d7750f
1فایلهای تغییر یافته به همراه1 افزوده شده و 2 حذف شده
  1. 1 2
      apps/security/src/security/templates/hive.mako

+ 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 -->