Commit 1412fc2
committed
feat: restrict policy workbench group targets to manageable scope
- Filter group targets by manageable_policy_group_ids for group-admin users
- Remove redundant comment from AdminController footer template save method
- Add unit tests for group-admin group filtering and probe access shortcut
- Ensures group-admins only see groups they manage when adding policy rules
Signed-off-by: Vitor Mattos <[email protected]>1 parent 496f27b commit 1412fc2
3 files changed
Lines changed: 60 additions & 7 deletions
File tree
- lib/Controller
- src
- tests/views/Settings/PolicyWorkbench
- views/Settings/PolicyWorkbench
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
878 | 878 | | |
879 | 879 | | |
880 | 880 | | |
881 | | - | |
882 | 881 | | |
883 | 882 | | |
884 | 883 | | |
| |||
Lines changed: 37 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
17 | 24 | | |
18 | 25 | | |
19 | 26 | | |
20 | 27 | | |
21 | 28 | | |
22 | 29 | | |
23 | 30 | | |
24 | | - | |
| 31 | + | |
25 | 32 | | |
26 | 33 | | |
27 | 34 | | |
| |||
75 | 82 | | |
76 | 83 | | |
77 | 84 | | |
| 85 | + | |
| 86 | + | |
78 | 87 | | |
79 | 88 | | |
80 | 89 | | |
| |||
458 | 467 | | |
459 | 468 | | |
460 | 469 | | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
461 | 497 | | |
462 | 498 | | |
463 | 499 | | |
| |||
Lines changed: 23 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
156 | 161 | | |
157 | 162 | | |
158 | 163 | | |
| |||
179 | 184 | | |
180 | 185 | | |
181 | 186 | | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
182 | 195 | | |
183 | 196 | | |
184 | 197 | | |
| |||
624 | 637 | | |
625 | 638 | | |
626 | 639 | | |
627 | | - | |
| 640 | + | |
628 | 641 | | |
629 | 642 | | |
630 | 643 | | |
| |||
633 | 646 | | |
634 | 647 | | |
635 | 648 | | |
636 | | - | |
| 649 | + | |
637 | 650 | | |
638 | 651 | | |
639 | 652 | | |
| |||
644 | 657 | | |
645 | 658 | | |
646 | 659 | | |
647 | | - | |
| 660 | + | |
648 | 661 | | |
649 | 662 | | |
650 | 663 | | |
651 | 664 | | |
652 | 665 | | |
653 | | - | |
| 666 | + | |
654 | 667 | | |
655 | 668 | | |
656 | 669 | | |
| |||
743 | 756 | | |
744 | 757 | | |
745 | 758 | | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
746 | 764 | | |
747 | 765 | | |
748 | 766 | | |
| |||
0 commit comments