frontend permission integration changed
Signed-off-by: Deepankumar Loganathan <deepan0433@gmail.com>
This commit is contained in:
@@ -14,36 +14,55 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
import { createPermission } from '@backstage/plugin-permission-common';
|
||||
|
||||
import { RESOURCE_TYPE_CATALOG_ENTITY } from '@backstage/plugin-catalog-common/alpha';
|
||||
|
||||
/**
|
||||
* @public
|
||||
*/
|
||||
export const azureDevOpsPullRequestReadPermission = createPermission({
|
||||
name: 'azure.devops.pullrequest.read',
|
||||
attributes: { action: 'read' },
|
||||
resourceType: RESOURCE_TYPE_CATALOG_ENTITY,
|
||||
});
|
||||
|
||||
/**
|
||||
* @public
|
||||
*/
|
||||
export const azureDevOpsPullRequestDashboardReadPermission = createPermission({
|
||||
name: 'azure.devops.pullrequest.dashboard.read',
|
||||
attributes: { action: 'read' },
|
||||
});
|
||||
|
||||
/**
|
||||
* @public
|
||||
*/
|
||||
export const azureDevOpsPipelineReadPermission = createPermission({
|
||||
name: 'azure.devops.pipeline.read',
|
||||
attributes: { action: 'read' },
|
||||
resourceType: RESOURCE_TYPE_CATALOG_ENTITY,
|
||||
});
|
||||
|
||||
/**
|
||||
* @public
|
||||
*/
|
||||
export const azureDevOpsGitTagReadPermission = createPermission({
|
||||
name: 'azure.devops.gittag.read',
|
||||
attributes: { action: 'read' },
|
||||
resourceType: RESOURCE_TYPE_CATALOG_ENTITY,
|
||||
});
|
||||
|
||||
/**
|
||||
* @public
|
||||
*/
|
||||
export const azureDevOpsReadmeReadPermission = createPermission({
|
||||
name: 'azure.devops.readme.read',
|
||||
attributes: { action: 'read' },
|
||||
resourceType: RESOURCE_TYPE_CATALOG_ENTITY,
|
||||
});
|
||||
|
||||
/**
|
||||
* @public
|
||||
*/
|
||||
export const azureDevOpsPermissions = [
|
||||
azureDevOpsPullRequestReadPermission,
|
||||
azureDevOpsPipelineReadPermission,
|
||||
|
||||
Reference in New Issue
Block a user