mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	Remove unit types commits and settings (#2161)
* Remove unit types commits and settings * Can not limit units in administrator teams * Limit changing units only to teams with read and write access mode * Small code optimization
This commit is contained in:
		| @@ -21,7 +21,7 @@ func TestAccessLevel(t *testing.T) { | ||||
| 	assert.NoError(t, PrepareTestDatabase()) | ||||
|  | ||||
| 	user1 := AssertExistsAndLoadBean(t, &User{ID: 2}).(*User) | ||||
| 	user2 := AssertExistsAndLoadBean(t, &User{ID: 4}).(*User) | ||||
| 	user2 := AssertExistsAndLoadBean(t, &User{ID: 5}).(*User) | ||||
| 	repo1 := AssertExistsAndLoadBean(t, &Repository{OwnerID: 2, IsPrivate: false}).(*Repository) | ||||
| 	repo2 := AssertExistsAndLoadBean(t, &Repository{OwnerID: 3, IsPrivate: true}).(*Repository) | ||||
|  | ||||
| @@ -46,7 +46,7 @@ func TestHasAccess(t *testing.T) { | ||||
| 	assert.NoError(t, PrepareTestDatabase()) | ||||
|  | ||||
| 	user1 := AssertExistsAndLoadBean(t, &User{ID: 2}).(*User) | ||||
| 	user2 := AssertExistsAndLoadBean(t, &User{ID: 4}).(*User) | ||||
| 	user2 := AssertExistsAndLoadBean(t, &User{ID: 5}).(*User) | ||||
| 	repo1 := AssertExistsAndLoadBean(t, &Repository{OwnerID: 2, IsPrivate: false}).(*Repository) | ||||
| 	repo2 := AssertExistsAndLoadBean(t, &Repository{OwnerID: 3, IsPrivate: true}).(*Repository) | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user