mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Fix can_push value to false in protected_branch (#2560)
This commit is contained in:
		@@ -26,6 +26,7 @@ type ProtectedBranch struct {
 | 
			
		||||
	ID               int64  `xorm:"pk autoincr"`
 | 
			
		||||
	RepoID           int64  `xorm:"UNIQUE(s)"`
 | 
			
		||||
	BranchName       string `xorm:"UNIQUE(s)"`
 | 
			
		||||
	CanPush          bool   `xorm:"NOT NULL DEFAULT false"`
 | 
			
		||||
	EnableWhitelist  bool
 | 
			
		||||
	WhitelistUserIDs []int64   `xorm:"JSON TEXT"`
 | 
			
		||||
	WhitelistTeamIDs []int64   `xorm:"JSON TEXT"`
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user