Skip to content

Commit bd5411a

Browse files
committed
Fix object and operation RBAC evaluation
1 parent e403d57 commit bd5411a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/components/PermissionList.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -318,17 +318,17 @@ export default class PermissionList extends Vue {
318318
}
319319
if (this.$data.operations.length == 0) {
320320
this.$data.db.resourceList('operation').then((response: any) => {
321-
this.$data.roles = [];
321+
this.$data.operations = [];
322322
response.forEach((element: any) => {
323-
this.$data.roles.push(element.Operation);
323+
this.$data.operations.push(element.Operation);
324324
});
325325
});
326326
}
327327
if (this.$data.objects.length == 0) {
328-
this.$data.db.resourceList('objects').then((response: any) => {
329-
this.$data.roles = [];
328+
this.$data.db.resourceList('object').then((response: any) => {
329+
this.$data.objects = [];
330330
response.forEach((element: any) => {
331-
this.$data.roles.push(element.Object);
331+
this.$data.objects.push(element.Object);
332332
});
333333
});
334334
}

0 commit comments

Comments
 (0)