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
Ethan Koenig
9621d3f074
Remove IsOwner, NumTeams from OrgUser ( #3269 )
7 years ago
Ethan Koenig
a8af5abc02
Fix ignored errors when checking if organization, team member ( #3177 )
7 years ago
Lunny Xiao
f1b7c521e1
Hide unactive on explore users and some refactors ( #2741 )
* hide unactive on explore users and some refactors
* fix test for removed Organizations
* fix test for removed Organizations
* fix imports
* fix logic bug
* refactor the toConds
* Rename TestOrganizations to TestSearchUsers and add tests for users
* fix other tests
* fix other tests
* fix watchers tests
* fix comments and remove unused code
7 years ago
Morlinest
e5b9a8269a
Expand fixtures ( #2571 )
* Add more repo search tests
* Add and fix /api/repo/search integration tests
* Add owner to access table for organization repositories
* Remove tests
7 years ago
Morlinest
5b0e53b124
Fix tests code to prevent some runtime errors ( #2381 )
* Fix tests code to prevent some runtime errors
* Reduce nesting
7 years ago
Antoine GIRARD
8d81576b4b
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
8 years ago
Ethan Koenig
507262d3f3
Consistency checks for unit tests ( #853 )
8 years ago
Ethan Koenig
8dbcd9a8c4
Unit tests and bug fix for models/org
8 years ago