Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 1 | // Copyright 2020 The Chromium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | import * as issue from './constants-issueV0.js'; |
| 6 | import 'shared/typedef.js'; |
| 7 | |
| 8 | /** @type {Permission} */ |
| 9 | export const PERMISSION_ISSUE_EDIT = 'ISSUE_EDIT'; |
| 10 | |
| 11 | /** @type {PermissionSet} */ |
| 12 | export const PERMISSION_SET_ISSUE = { |
| 13 | resource: issue.NAME, |
| 14 | permissions: [PERMISSION_ISSUE_EDIT], |
| 15 | }; |
| 16 | |
| 17 | /** @type {Object<string, PermissionSet>} */ |
| 18 | export const BY_NAME = { |
| 19 | [issue.NAME]: PERMISSION_SET_ISSUE, |
| 20 | }; |
| 21 | |
| 22 | /** @type {Array<Permission>} */ |
| 23 | export const PERMISSION_HOTLIST_EDIT = ['HOTLIST_EDIT']; |