瀏覽代碼

[security] Sync'd roles and tree creation

Enrico Berti 11 年之前
父節點
當前提交
8f52c9a
共有 2 個文件被更改,包括 1 次插入1 次删除
  1. 0 1
      apps/security/src/security/templates/hive.mako
  2. 1 0
      apps/security/static/js/hive.ko.js

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

@@ -488,7 +488,6 @@ ${ tree.import_templates(itemClick='$root.assist.setPath', iconClick='$root.assi
           highlightMainMenu(mainSection);
           viewModel.updateSectionHash(mainSection);
         }
-
         logGA(mainSection);
       }
 

+ 1 - 0
apps/security/static/js/hive.ko.js

@@ -226,6 +226,7 @@ var Role = function (vm, role) {
       role: ko.mapping.toJSON(role)
     }, function (data) {
       if (data.status == 0) {
+        vm.list_sentry_roles_by_group();
         vm.list_sentry_privileges_by_authorizable();
         vm.list_sentry_privileges_by_role(role); // Refresh all role privileges
       } else {