summaryrefslogtreecommitdiffstats
path: root/models/repo_collaboration.go
Commit message (Collapse)AuthorAgeFilesLines
* Team permission to create repository in organization (#8312)David Svantesson2019-11-201-20/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add team permission setting to allow creating repo in organization. Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Add test case for creating repo when have team creation access. Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * build error: should omit comparison to bool constant Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Add comment on exported functions * Fix fixture consistency, fix existing unit tests * Fix boolean comparison in xorm query. * addCollaborator and changeCollaborationAccessMode separate steps More clear to use different if-cases. * Create and commit xorm session * fix * Add information of create repo permission in team sidebar * Add migration step * Clarify that repository creator will be administrator. * Fix some things after merge * Fix language text that use html * migrations file * Create repository permission -> Create repositories * fix merge * fix review comments
* Recalculate repository access only for specific user (#8481)David Svantesson2019-10-151-6/+13
| | | | | | | | | | * Recalculate repository access only for specific user Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Handle user repositories as well, and only add access if minimum mode * Need to get repo owner to check if organization
* Add teams to repo on collaboration page. (#8045)David Svantesson2019-09-231-14/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add teams to repo on collaboration page. Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Add option for repository admins to change teams access to repo. Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Add comment for functions Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Make RepoAdminChangeTeamAccess default false in xorm and make it default checked in template instead. Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Make proper language strings and fix error redirection. * Add unit tests for adding and deleting team from repository. Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Add database migration Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Fix redirect Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Fix locale string mismatch. Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Move team access mode text logic to template. * Move collaborator access mode text logic to template.
* Add golangci (#6418)kolaente2019-06-121-1/+1
|
* Fix not removed watches on unallowed repositories (#4201)David Schneiderbauer2018-06-191-0/+9
|
* Reduce usage of allcols on update (#2596)Lunny Xiao2017-09-251-1/+1
| | | | | | * reduce usage of allcols on update * fix bug and tests
* Refactor session close as xorm already does everything needed internally (#2020)Lauris BH2017-06-211-3/+3
|
* API Endpoints for collaborators (#375)Ethan Koenig2016-12-261-0/+9
|
* Fixed linting errors for variable definitionsThomas Boerger2016-11-291-1/+1
|
* Lint models/repo_*Bwko2016-11-281-0/+1
|
* Rewrite XORM queriesThibault Meyer2016-11-101-1/+4
|
* ACCESS_MODE_* -> AccessMode*Sandro Santilli2016-11-071-5/+5
|
* #2780 code clean upUnknwon2016-08-111-1/+4
|
* Refactor User.Id to User.IDUnknwon2016-07-241-1/+1
|
* Localize collaboration settings. (#3100)Andrey Nering2016-06-281-5/+6
| | | Closes #2764
* #2302 Replace time.Time with Unix Timestamp (int64)Unknwon2016-03-091-6/+4
|
* #1146 finsih UI work for access mode of collaboratorsUnknwon2016-03-051-0/+161
Collaborators have write access as default, and can be changed via repository collaboration settings page to change between read, write and admin.