aboutsummaryrefslogtreecommitdiffstats
path: root/models/access.go
Commit message (Collapse)AuthorAgeFilesLines
* Restrict permission check on repositories and fix some problems (#5314)Lunny Xiao2018-11-281-16/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Refactor and fix incorrect comment (#1247)Ethan Koenig2017-03-151-12/+12
|
* Fix SQL bug in models/access (#583)Ethan Koenig2017-01-051-11/+14
| | | Previously got a 'relation repo_access does not exist' error in User_GetRepositoryAccesses
* Fix typos in models/ (#576)Ethan Koenig2017-01-051-1/+1
|
* Optimization for user.GetRepositoryAccesses to reduce db query times (#495)Lunny Xiao2016-12-281-18/+27
| | | | | | * optimization for user.GetRepositoryAccesses to reduce db query times * fix missing cache
* Lint models/access.goBwko2016-11-261-20/+26
|
* Merge remote-tracking branch 'upstream/master' into feature/rewrite-xorm-queriesThibault Meyer2016-11-101-1/+1
|\ | | | | | | | | | | | | | | | | # Conflicts: # models/git_diff.go # models/issue.go # models/org.go # models/pull.go # models/repo.go
| * Update import paths from github.com/go-gitea to code.gitea.io (#135)Sandro Santilli2016-11-101-1/+1
| | | | | | | | | | | | | | - Update import paths from github.com/go-gitea to code.gitea.io - Fix import path for travis See https://docs.travis-ci.com/user/languages/go#Go-Import-Path
* | Rewrite XORM queriesThibault Meyer2016-11-101-2/+6
|/
* ACCESS_MODE_* -> AccessMode*Sandro Santilli2016-11-071-19/+19
|
* Change import reference to match gitea instead of gogs (#37)Rémy Boulanouar2016-11-031-1/+1
|
* #1384 add pagination for repositoriesUnknwon2016-07-241-17/+11
|
* Refactor User.Id to User.IDUnknwon2016-07-241-7/+7
|
* #1692 api: admin list and create team under organizationUnknwon2016-03-211-0/+27
|
* Updated and created were appended with _unix. Fresh databases have only the ↵Marin Jankovski2016-03-111-1/+1
| | | | newly named fields.
* #1146 finsih UI work for access mode of collaboratorsUnknwon2016-03-051-11/+10
| | | | | Collaborators have write access as default, and can be changed via repository collaboration settings page to change between read, write and admin.
* fix #1997Unknwon2015-11-191-10/+10
|
* fix #1953Unknwon2015-11-151-0/+4
|
* fix #1302Unknwon2015-11-131-6/+18
|
* #1458: Authorities were messed up when using mysql databaseUnknwon2015-08-281-40/+27
|
* minor fix on API responseUnknwon2015-08-191-1/+1
|
* WIP: create PR - choose branchUnknwon2015-08-081-7/+7
|
* #1369: nil pointer when add repo to teamUnknwon2015-07-241-4/+3
|
* #1279: Removing user from collaboration removes repositioryUnknwon2015-07-141-0/+19
|
* #1143 Team member access lost when adding repository collaboratorUnknwon2015-03-241-0/+5
| | | | - fix bug when add a repo to team, all other team members gets access as well
* #1040: dashboard no longer accessible when repo is missingUnknwon2015-03-161-0/+6
|
* REAMDE: updateUnknwon2015-02-281-0/+1
|
* models: done testing on new access systemUnknwon2015-02-281-40/+58
|
* models: fix issue with transfer repositoryUnknwon2015-02-241-3/+7
| | | | README: fix typo
* v4 migration, merge 'dev', clean code and mirror fixUnknwon2015-02-231-14/+23
|
* some fixes, but not done yet!Unknwon2015-02-131-7/+12
|
* code fix #941 caution: undertestUnknwon2015-02-131-30/+36
|
* Merge remote-tracking branch 'mine/access_refactor' into access_refactorPeter Smit2015-02-121-12/+12
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: cmd/serve.go models/access.go models/migrations/migrations.go models/org.go models/repo.go models/user.go modules/middleware/org.go modules/middleware/repo.go routers/api/v1/repo.go routers/org/teams.go routers/repo/http.go routers/user/home.go
| * Change constants to UPPERCASE_WITH_UNDERSCORE stylePeter Smit2015-02-091-12/+12
| |
| * Refactoring of the Access TablePeter Smit2015-02-061-63/+113
| | | | | | | | | | | | This commit does a lot of the work of refactoring the access table in a table with id's instead of strings. The result does compile, but has not been tested. It may eat your kittens.
* | Refactoring of the Access TablePeter Smit2015-02-121-66/+109
| | | | | | | | | | | | This commit does a lot of the work of refactoring the access table in a table with id's instead of strings. The result does compile, but has not been tested. It may eat your kittens.
* | first pass work on migration #925Unknwon2015-02-111-19/+23
|/
* Fix dashboard issue after collaboration migrationPeter Smit2015-02-041-0/+4
|
* Introducing Collaboration StructPeter Smit2015-01-231-0/+20
|
* Finsih add/remove repo in organizationUnknwon2014-08-261-4/+4
|
* Add create organizationUnknown2014-06-251-8/+9
|
* Fix #165Unknown2014-06-211-4/+4
|
* Show private repository activities in dashboard if has accessUnknown2014-05-081-0/+3
|
* Assignee back endUnknown2014-05-081-2/+3
|
* CollaboratorUnknown2014-05-011-0/+6
|
* Fix import pathUnknown2014-04-181-1/+1
|
* Add repo mirror and importUnknown2014-04-121-1/+1
|
* Support private repoUnknown2014-04-111-4/+11
|
* Use session for rolling backUnknown2014-04-041-0/+11
|
* Add: rename repositoryUnknown2014-04-031-0/+8
|