Explorar o código

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

Enrico Berti %!s(int64=9) %!d(string=hai) anos
pai
achega
040f2ee
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);