aboutsummaryrefslogtreecommitdiffstats
path: root/models/org_test.go
Commit message (Collapse)AuthorAgeFilesLines
* Add golangci (#6418)kolaente2019-06-121-3/+3
|
* Allow to set organization visibility (public, internal, private) (#1763)Rémy Boulanouar2019-02-181-0/+71
|
* Restrict permission check on repositories and fix some problems (#5314)Lunny Xiao2018-11-281-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* hide issues from org private repos w/o team assignment (#4034)David Schneiderbauer2018-06-211-6/+6
|
* Remove IsOwner, NumTeams from OrgUser (#3269)Ethan Koenig2018-01-081-12/+4
|
* Fix ignored errors when checking if organization, team member (#3177)Ethan Koenig2017-12-211-35/+66
|
* Hide unactive on explore users and some refactors (#2741)Lunny Xiao2017-10-241-21/+0
| | | | | | | | | | | | | | | | | | | | | | | | * 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
* Expand fixtures (#2571)Morlinest2017-09-221-1/+1
| | | | | | | | | | * Add more repo search tests * Add and fix /api/repo/search integration tests * Add owner to access table for organization repositories * Remove tests
* Fix tests code to prevent some runtime errors (#2381)Morlinest2017-08-281-46/+54
| | | | | | * Fix tests code to prevent some runtime errors * Reduce nesting
* Improve org error handling (#2117)Antoine GIRARD2017-07-061-2/+2
| | | | | | | | | | * Improve ErrOrgNotExist type Return new error type Use good error check Use new method to check error Update tests * Fix unchanged method name report
* Consistency checks for unit tests (#853)Ethan Koenig2017-02-071-0/+16
|
* Unit tests and bug fix for models/orgEthan Koenig2017-01-271-0/+520