فهرست منبع

HUE-3925 [sentry] New privilege from the Roles section are not blank

Enrico Berti 9 سال پیش
والد
کامیت
040f2ee
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      apps/security/src/security/static/security/js/sentry.ko.js

+ 1 - 1
apps/security/src/security/static/security/js/sentry.ko.js

@@ -271,7 +271,7 @@ var Role = function (vm, role) {
 
   self.addPrivilege = function () {
     var privilege = new Privilege(vm, {'serverName': vm.assist.server(), 'status': 'new', 'editing': true});
-    if (vm.assist.path()) {
+    if (vm.assist.path() && vm.getSectionHash() == 'edit') {
       privilege.path(vm.assist.path());
     }
     self.privileges.push(privilege);