Edit

GitPermissionScope Enum

Definition

Scopes where GitRepositoryPermissions can apply.

This enumeration supports a bitwise combination of its member values.

[System.Flags]
public enum GitPermissionScope
type GitPermissionScope = 
Public Enum GitPermissionScope
Inheritance
GitPermissionScope
Attributes

Fields

Name Value Description
Project 1
Repository 2
Branch 4
NonBranchRef 8
BranchesRoot 16

Remarks

This enum currently serves 2 purposes: 1. Used by VC Admin UI to determine the GitRepositoryPermissions value that applies to a specific scope and can be changed using the web UI. 2. Used through Git Server to specify a scope to pass to SecurityHelper calls to decide whether an identity has the required access to a resource. Only Project/Repository/Branch apply. FUTURE: We should separate these uses since some scopes are never valid in SecurityHelper calls, and both sets will continue changing for different reasons.

Applies to