mattermost-mobile-upstream/app/constants/access_control.ts
Nate Schlossberg 16c5849eb6
Some checks failed
ci / lint-typecheck (push) Has been cancelled
ci / detox-lint-typecheck (push) Has been cancelled
ci / test (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
MM-70693: Hide burn-on-read quick action when ABAC policy denies it (#10239)
* Remove BoR quick action on ABAC permission denial

* Update Render Permission to support handling for ABAC servers that do not yet support a particular permision action - they will be treated as "unenforced"

* detox - allow skipping of tests on permission policy actions that are not supported by the test server yet
2026-10-16 15:13:04 -07:00

14 lines
732 B
TypeScript

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
// Action names registered by the server for render-time decisions (renderableABACActions,
// server/channels/app/access_control_decision.go). Adding an action here is all the client needs:
// decisions are requested in discovery mode, so every registered action comes back in one request.
export const RenderPermissionAction = {
UploadFileAttachment: 'upload_file_attachment',
CreateBurnOnReadPost: 'create_burn_on_read_post',
} as const;
export type RenderPermissionActionName = typeof RenderPermissionAction[keyof typeof RenderPermissionAction];
export const RENDER_PERMISSION_RESOURCE_CHANNEL = 'channel';