浏览代码

[sentry] Disable group edition when not a Sentry admin

Romain Rigaux 11 年之前
父节点
当前提交
d0bb3b7
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      apps/security/src/security/templates/hive.mako

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

@@ -293,7 +293,7 @@ ${ layout.menubar(section='hive') }
                   <span data-bind="text: name"/>
                 </td>
                 <td>
-                  <a class="pointer" data-bind="click: function() { showEditGroups(true); }">
+                  <a class="pointer" data-bind="click: function() { if ($root.is_sentry_admin) { showEditGroups(true); } }">
                     <span data-bind="foreach: groups, visible: ! showEditGroups() && ! groupsChanged()">
                       <span data-bind="text: $data"></span>
                     </span>