mirror of
https://github.com/mattermost/mattermost-mobile.git
synced 2026-11-05 18:38:54 +00:00
* 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
14 lines
732 B
TypeScript
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';
|