MM-63935 - abac end user indicators db changes (#8849)

* MM-63935 - abac end user indicators

* rename policy variables to clearly indicate are from abac

* update attributes hook to cache processed data

* use policyEnforce property

* add missing type

* rename policy_enforced to abac_policy_enforced part 1

* add channel policy enforced type

* fix translation file

* remove unnecesary stop propagation

* MM-63935 - abac end user indicators db changes

* rename the policy name to clarify which policy does refer to

* update property name and add documentation to clarify intention

* rename policy_enforced to abac_policy_enforced db changes side
This commit is contained in:
Pablo Vélez
2025-05-14 23:55:47 +02:00
committed by GitHub
parent a5fbd66320
commit d838f74273
21 changed files with 1012 additions and 5 deletions

View File

@@ -45,6 +45,9 @@ type Channel = {
group_constrained: boolean|null;
shared: boolean;
banner_info?: ChannelBannerInfo;
/** Whether the channel has Attribute-Based Access Control (ABAC) policy enforcement enabled, controlling access based on user attributes */
policy_enforced?: boolean;
};
type ChannelPatch = {
name?: string;
@@ -170,3 +173,5 @@ type ChannelBannerInfo = {
text?: string;
background_color?: string;
}
type ChannelAccessControlAttributes = Record<string, string[]>;

View File

@@ -56,6 +56,9 @@ declare class ChannelModel extends Model {
bannerInfo?: ChannelBannerInfo;
/** Whether the channel has Attribute-Based Access Control (ABAC) policy enforcement enabled, controlling access based on user attributes */
abacPolicyEnforced?: boolean;
/** members : Users belonging to this channel */
members: Query<ChannelMembershipModel>;