blob: 0ac763e21e83eeca1c4cca4014a5f99e4ca2f7cd [file] [log] [blame]
// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import * as issue from './constants-issueV0.js';
import 'shared/typedef.js';
/** @type {Permission} */
export const PERMISSION_ISSUE_EDIT = 'ISSUE_EDIT';
/** @type {PermissionSet} */
export const PERMISSION_SET_ISSUE = {
resource: issue.NAME,
permissions: [PERMISSION_ISSUE_EDIT],
};
/** @type {Object<string, PermissionSet>} */
export const BY_NAME = {
[issue.NAME]: PERMISSION_SET_ISSUE,
};
/** @type {Array<Permission>} */
export const PERMISSION_HOTLIST_EDIT = ['HOTLIST_EDIT'];