Skip to content

Commit fa08417

Browse files
committed
feat: New setting for showing ABAC attributes in rooms (#37465)
1 parent 49b12e3 commit fa08417

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

apps/meteor/ee/server/settings/abac.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,19 @@ export function addSettings(): void {
1515
section: 'ABAC',
1616
i18nDescription: 'ABAC_Enabled_Description',
1717
});
18+
await this.add('ABAC_ShowAttributesInRooms', false, {
19+
type: 'boolean',
20+
public: true,
21+
invalidValue: false,
22+
section: 'ABAC',
23+
enableQuery: { _id: 'ABAC_Enabled', value: true },
24+
});
1825
await this.add('Abac_Cache_Decision_Time_Seconds', 300, {
1926
type: 'int',
2027
public: true,
2128
section: 'ABAC',
2229
invalidValue: 0,
30+
enableQuery: { _id: 'ABAC_Enabled', value: true },
2331
});
2432
},
2533
);

packages/i18n/src/locales/en.i18n.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
"ABAC_Warning_Modal_Title": "Deactivate ABAC",
2424
"ABAC_Warning_Modal_Confirm_Text": "Deactivate ABAC",
2525
"ABAC_Warning_Modal_Content": "You will not be able to automatically or manually manage users in existing ABAC-managed rooms. To restore a room's default access control, it must be removed from ABAC management in <1>ABAC > Rooms</1>.",
26+
"ABAC_ShowAttributesInRooms": "Show ABAC attributes in rooms",
27+
"ABAC_ShowAttributesInRooms_Description": "Display the ABAC attributes assigned to the room in the contextual bar",
2628
"abac-management": "Manage ABAC configuration",
2729
"abac_removed_user_from_the_room": "was removed by ABAC",
2830
"AI_Actions": "AI actions",

0 commit comments

Comments
 (0)