kolaente
f9ec2f89f2
Add golangci (#6418)
5 лет назад
Rémy Boulanouar
64ce159a6e
Allow to set organization visibility (public, internal, private) (#1763)
5 лет назад
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
5 лет назад
David Schneiderbauer
0b3ea42847
hide issues from org private repos w/o team assignment (#4034)
6 лет назад
Ethan Koenig
f48680888c
Remove IsOwner, NumTeams from OrgUser (#3269)
6 лет назад
Ethan Koenig
515cdaa85d
Fix ignored errors when checking if organization, team member (#3177)
6 лет назад
Lunny Xiao
6eeadb2082
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
6 лет назад
Morlinest
ca68a75b5b
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
6 лет назад
Morlinest
8e61823ec4
Fix tests code to prevent some runtime errors (#2381)
* Fix tests code to prevent some runtime errors
* Reduce nesting
6 лет назад
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 лет назад
Ethan Koenig
ceae143e78
Consistency checks for unit tests (#853)
7 лет назад
Ethan Koenig
a2412492da
Unit tests and bug fix for models/org
7 лет назад