blob: 0ac763e21e83eeca1c4cca4014a5f99e4ca2f7cd [file] [log] [blame]
Adrià Vilanova Martínezf19ea432024-01-23 20:20:52 +01001// Copyright 2020 The Chromium Authors
Copybara854996b2021-09-07 19:36:02 +00002// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5import * as issue from './constants-issueV0.js';
6import 'shared/typedef.js';
7
8/** @type {Permission} */
9export const PERMISSION_ISSUE_EDIT = 'ISSUE_EDIT';
10
11/** @type {PermissionSet} */
12export const PERMISSION_SET_ISSUE = {
13 resource: issue.NAME,
14 permissions: [PERMISSION_ISSUE_EDIT],
15};
16
17/** @type {Object<string, PermissionSet>} */
18export const BY_NAME = {
19 [issue.NAME]: PERMISSION_SET_ISSUE,
20};
21
22/** @type {Array<Permission>} */
23export const PERMISSION_HOTLIST_EDIT = ['HOTLIST_EDIT'];