You've already forked woodpecker
							
							
				mirror of
				https://github.com/woodpecker-ci/woodpecker.git
				synced 2025-10-30 23:27:39 +02:00 
			
		
		
		
	added new handlers and workers
This commit is contained in:
		| @@ -72,8 +72,8 @@ func mustConnectTest() *sql.DB { | ||||
| 	return db | ||||
| } | ||||
|  | ||||
| // New returns a new DataStore | ||||
| func New(db *sql.DB) datastore.Datastore { | ||||
| // New returns a new Datastore | ||||
| func NewDatastore(db *sql.DB) datastore.Datastore { | ||||
| 	return struct { | ||||
| 		*Userstore | ||||
| 		*Permstore | ||||
|   | ||||
| @@ -32,7 +32,7 @@ func GetPerm(c context.Context, user *model.User, repo *model.Repo) (*model.Perm | ||||
| 			Read:  false, | ||||
| 			Write: false, | ||||
| 			Admin: false}, nil | ||||
| 	case user == nil && !reop.Private: | ||||
| 	case user == nil && !repo.Private: | ||||
| 		return &model.Perm{ | ||||
| 			Guest: true, | ||||
| 			Read:  true, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user