forked from Ivasoft/mattermost-mobile
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:
5
types/api/channels.d.ts
vendored
5
types/api/channels.d.ts
vendored
@@ -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[]>;
|
||||
|
||||
@@ -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>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user