Jonas Franz
9681c83734
Approvals at Branch Protection ( #5350 )
...
* Add branch protection for approvals
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Add required approvals
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Add missing comments and fmt
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Add type = approval and group by reviewer_id to review
* Prevent users from adding negative review limits
* Add migration for approval whitelists
Signed-off-by: Jonas Franz <info@jonasfranz.software>
6 years ago
Lunny Xiao
eabbddcd98
Restrict permission check on repositories and fix some problems ( #5314 )
...
* fix units permission problems
* fix some bugs and merge LoadUnits to repoAssignment
* refactor permission struct and add some copyright heads
* remove unused codes
* fix routes units check
* improve permission check
* add unit tests for permission
* fix typo
* fix tests
* fix some routes
* fix api permission check
* improve permission check
* fix some permission check
* fix tests
* fix tests
* improve some permission check
* fix some permission check
* refactor AccessLevel
* fix bug
* fix tests
* fix tests
* fix tests
* fix AccessLevel
* rename CanAccess
* fix tests
* fix comment
* fix bug
* add missing unit for test repos
* fix bug
* rename some functions
* fix routes check
6 years ago
Lunny Xiao
b3000ae623
Fix create team, update team missing units ( #5188 )
6 years ago
Lunny Xiao
c5d098c32e
fix bug when users have serval teams with different units on different repositories ( #5307 )
6 years ago
Lunny Xiao
5f938c0c78
Fix sqlite lock ( #5176 )
...
* fix sqlite lock
* fix sqlite lock on getUnitType
6 years ago
David Schneiderbauer
0b3ea42847
hide issues from org private repos w/o team assignment ( #4034 )
6 years ago
David Schneiderbauer
a93f13849c
Fix not removed watches on unallowed repositories ( #4201 )
6 years ago
Wendell Sun
2d1c5c3756
Fix remove team member issue ( #3566 )
...
Put sess.Commit() out of the RemoveOrgUser function
Add an empty line to separate import packages
7 years ago
Ethan Koenig
f48680888c
Remove IsOwner, NumTeams from OrgUser ( #3269 )
7 years ago
Ethan Koenig
c64924682e
Fix race condition in team functions ( #3268 )
7 years ago
Ethan Koenig
515cdaa85d
Fix ignored errors when checking if organization, team member ( #3177 )
7 years ago
Ethan Koenig
aa962deec0
Replace deprecated Id method with ID ( #2655 )
7 years ago
Lunny Xiao
dd55534b82
Reduce usage of allcols on update ( #2596 )
...
* reduce usage of allcols on update
* fix bug and tests
7 years ago
Lunny Xiao
1739e84ac0
improve protected branch to add whitelist support ( #2451 )
...
* improve protected branch to add whitelist support
* fix lint
* fix style check
* fix tests
* fix description on UI and import
* fix test
* bug fixed
* fix tests and languages
* move isSliceInt64Eq to util pkg; improve function names & typo
7 years ago
Ethan Koenig
f29458bd3a
EnableUnit() -> UnitEnabled() ( #2242 )
7 years ago
Antoine GIRARD
30787e48f2
Improve org error handling ( #2117 )
...
* Improve ErrOrgNotExist type
Return new error type
Use good error check
Use new method to check error
Update tests
* Fix unchanged method name report
7 years ago
Lauris BH
6db387a21e
Refactor session close as xorm already does everything needed internally ( #2020 )
7 years ago
Lunny Xiao
fd6034aaf2
Add units to team ( #947 )
...
* add units to team
* fix lint
* finish team setting backend
* finished permission controll on routes
* fix import blank line
* add unit check on ssh/http pull and push and fix test failed
* fix fixtures data
* remove unused code
8 years ago
Sandro Santilli
f73e734411
Run "make fmt" with go-1.6 ( #1333 )
8 years ago
Ethan Koenig
ec0ae5d50c
Refactor and fix incorrect comment ( #1247 )
8 years ago
Ethan Koenig
d21d5fd736
Remove unnecessary loads in org_team ( #1090 )
8 years ago
Ethan Koenig
76057105ca
Remove unnecessary loads in org_team ( #1035 )
8 years ago
Ethan Koenig
4f3880ff15
Bug fixes and unit tests for org_team ( #1016 )
8 years ago
Lunny Xiao
7fd14bf7bd
optimization for team get repos ( #953 )
8 years ago
Lunny Xiao
0642cb330c
Small opitimization for getUserTeams ( #954 )
...
* Small opitimization for getUserTeams
* more compact
8 years ago
Lunny Xiao
bb5a6b7a07
fix xorm NewSession uncorrected usages ( #774 )
8 years ago
Lunny Xiao
f215d78157
rename all uID -> userID on models/org_team.go
8 years ago
Lunny Xiao
21846d16e5
golint for models/org_team.go
8 years ago
Thibault Meyer
a4454f5d0f
Rewrite XORM queries
8 years ago
Sandro Santilli
f388661bda
ACCESS_MODE_* -> AccessMode*
8 years ago
LefsFlare
55a4d46f5d
Adds checking of reserved keywords against team names ( #22 )
8 years ago
Unknwon
1f2e173a74
Refactor User.Id to User.ID
8 years ago
Unknwon
b1d41cfa60
#1692 add admin APIs to add/remove a user from teams
9 years ago