Christian Muehlhaeuser
2dad58e5c0
Fixed ineffectual assignments in tests ( #7553 )
Just makes it a bit more obvious which values we want to test for, and which
ones we want to ignore.
5 years ago
kolaente
cdba91b438
Add golangci ( #6418 )
6 years ago
Lunny Xiao
1c80f31f40
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
David Schneiderbauer
304bd2ea73
hide issues from org private repos w/o team assignment ( #4034 )
7 years ago
Lauris BH
e687d24d8e
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
8 years ago
Ethan Koenig
c2ba9ca97b
Refactor and fix incorrect comment ( #1247 )
8 years ago
Ethan Koenig
8dbcd9a8c4
Unit tests and bug fix for models/org
8 years ago
Lunny Xiao
1e4337d0a2
fix xorm NewSession uncorrected usages ( #774 )
8 years ago
Ethan Koenig
d59b499b6b
Less boilerplate in models/ unit tests ( #725 )
8 years ago
Ethan Koenig
1bad00d695
Unit tests for models/action ( #619 )
8 years ago
Ethan Koenig
41d72158cc
Unit tests for models/access.go ( #606 )
8 years ago