203 Commits (forgejo)

Author SHA1 Message Date
Ethan Koenig a2412492da Unit tests and bug fix for models/org 8 years ago
Lunny Xiao bb5a6b7a07 fix xorm NewSession uncorrected usages (#774) 8 years ago
Ethan Koenig da1b6164fe Fix FIXME and remove superfluous queries in models/org (#749) 8 years ago
btrepp 302fa42980 Removes reliance on server specific SQL (#393)
Breaks the retrieval of repositories into two queries
This fetches the paged ids in one go, then the
actual repository information in a second query

Some databases do not support SELECT with *
when group by is used.
8 years ago
Bo-Yi Wu cbf2a967c5 refactor: Add new deleteOrg func. (#633) 8 years ago
Andrey Nering 84b7d29d34 Create missing database indexes (#596) 8 years ago
Lunny Xiao 09dabe2ff2 fix bug #564 (#567) 8 years ago
Schwobaland c0904f1942 Restrict creating organisations by user (#193)
* restrict creating organizations based on right on user

* revert bindata.go

* reverse vendor lib

* revert goimports change

* set AllowCreateOrganization default value to true

* revert locale

* added default value for AllowCreateOrganization

* fix typo in migration-comment

* fix comment

* add coments in migration
8 years ago
Lunny Xiao 799d0c2030 slight optimization for GetUserRepositories (#498) 8 years ago
Lunny Xiao ba134bd27a fix 500 when delete orgnization and resolved #486 8 years ago
Bwko fa3abc22c0 Added sorting to organizations, repos & users page (#222) 8 years ago
Denis Denisov 380e32e129 Fix random string generator (#384)
* Remove unused custom-alphabet feature of random string generator

Fix random string generator

Random string generator should return error if it fails to read random data via crypto/rand

* Fixes variable (un)initialization mixed assign
Update test GetRandomString
8 years ago
Lunny Xiao 21846d16e5 golint for models/org_team.go 8 years ago
Bwko a4ece1f223 Fixes typos 8 years ago
Bwko 0b9cf10340 Lint models/org.go & models.go 8 years ago
Lunny Xiao ade6d4a20f optimization on database IN 8 years ago
Lunny Xiao 9bf28a2799 bug fixed for 500 caused by get org users (#149) 8 years ago
Thibault Meyer b12f2a5916
Remove unused import 8 years ago
Thibault Meyer b0ddced2b5
Merge remote-tracking branch 'upstream/master' into feature/rewrite-xorm-queries
# Conflicts:
#	models/git_diff.go
#	models/issue.go
#	models/org.go
#	models/pull.go
#	models/repo.go
8 years ago
Thibault Meyer a4454f5d0f
Rewrite XORM queries 8 years ago
Sandro Santilli 4247304f5a Update import paths from github.com/go-gitea to code.gitea.io (#135)
- 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
8 years ago
Lunny Xiao c6c840faf7 Merge pull request #129 from lunny/lunny/SQL_instead_Sql
use x.SQL instead of x.Sql
8 years ago
Thibault Meyer 3a10a0c1ca
Ordering organizations and users by name 8 years ago
Lunny Xiao 7dcc3bc3d7 use x.SQL instead of x.Sql 8 years ago
Sandro Santilli aadd7dcdc3 And others 8 years ago
Sandro Santilli f388661bda ACCESS_MODE_* -> AccessMode* 8 years ago
Thibault Meyer fe8bfa54de Ordering team by name ascending except for 'Owners' (#48) 8 years ago
Rémy Boulanouar 2d68bd1ef9 Change import reference to match gitea instead of gogs (#37) 8 years ago
Thibault Meyer 8ad92bb8a4 Verify list len before use it with IN (#3423) 8 years ago
Unknwon a562228c5e Add org.getUserTeams to reduce redundant code 8 years ago
Unknwon e74630ae3b #1384 add pagination for repositories 8 years ago
Unknwon 1f2e173a74 Refactor User.Id to User.ID 8 years ago
Unknwon 69f5308761 #2903 use different reversed words and patterns for repository and user 8 years ago
Unknwon 4f78abe7dc #3066 fix create organization ignores full name property 8 years ago
Unknwon f1b8d52eb3 #2854 fix no mail notification when issue is closed/reopened 8 years ago
Kim Carlbäcker 3c0c7a9f83 Fix listing team members (#3048) 8 years ago
Unknwon b1d41cfa60 #1692 add admin APIs to add/remove a user from teams 8 years ago
Unknwon 2bf8494332 #13 finish user and repository search
Both are possible on explore and admin panel
8 years ago
Unknwon eed9966ad6 #2727 fix incompatible SQL in PostgreSQL 8 years ago
Unknwon 5335e671be #2743 more fixes on SQL errors 8 years ago
Unknwon d57a2b908a #2743 and #2751 fix bad SQL generated by XORM
Use hand-written SQL to do complex query
8 years ago
Unknwon c9901bbba5 #2743 workaround to fix XORM problem 8 years ago
Unknwon 97429a25ab #2727 make IN clause compatible with Postgres 8 years ago
Unknwon aa12135b97 Fix panic when view profile without signin
Also fix that no matter who, still able to see organizations with private membership.
8 years ago
Unknwon fd92d91da3 Minor fix for #2578 8 years ago
ExMex 2cfe6f8c60 Admins and user itself sees private org relations on profile 9 years ago
Unknwon ddf9fa06c7 Minor fix for #2530 9 years ago
Unknwon 739d5aa1d3 Merge pull request #2530 from fnkr/hide-other-teams-repos-from-org-page
Hide other teams & repos from organization page
9 years ago
Florian Kaiser fb1708e1af Remove unnecessary private functions 9 years ago
Florian Kaiser 90780a0d90 Use invalid value (-1) instead of 0 to prevent bug if auto increment starts with 0 9 years ago
Florian Kaiser bba1847a8e Everyone can see public repos 9 years ago
Florian Kaiser e35791b2b2 Only show teams the user has access to 9 years ago
Florian Kaiser 5eafe2b17e Only show repositories the user has access to, on the organization home 9 years ago
Florian Kaiser 295de51b99 Show all orgs on user profile, except the private one's 9 years ago
Unknwon 112a7cab31 #2497 incorrect error handle for team name 9 years ago
Unknwon 9cd16c5b12 #1692 add organization APIs 9 years ago
Unknwon 3362b3a44f fix possible disclosure 9 years ago
Unknwon 4d31eb2c0d #2155 fix org max repo limit default to -1 9 years ago
Antoine GIRARD c98dad1cf3 New admin organization UI 9 years ago
Unknwon 3d9b98fae4 #1585 order owners list by last changed time 9 years ago
Unknwon 80701d45bb #1193 Make organization emails non-mandatory 9 years ago
Unknwon aa67de910a fix #1558 9 years ago
Unknwon ff35a37769 #1458: Authorities were messed up when using mysql database 9 years ago
Unknwon dea3a8c6a4 WIP: create PR - choose branch 9 years ago
Unknwon 698b9e2acc #1070 Clearer error message for illegal characters 9 years ago
Unknwon 466facc009 #1067: Deleting users should remove them from collaborator lists
- fix delete user but repository watches are not decreased
9 years ago
Unknwon 473e265727 models: done testing on new access system 9 years ago
Unknwon 8896c82d34 models: fix issue with transfer repository
README: fix typo
9 years ago
Unknwon ee68a826a5 v4 migration, merge 'dev', clean code and mirror fix 9 years ago
Unknwon 10e4b5b6c6 Merge branch 'access' of github.com:gogits/gogs into access 9 years ago
Unknwon 7ccab9cd09 Merge branch 'dev' of github.com:gogits/gogs into access
Conflicts:
	gogs.go
	models/models.go
	models/user.go
	templates/.VERSION
	templates/org/home.tmpl
9 years ago
Unknwon 04164eada3 models: able to rename user with diff letter cases #981
- templates/org: mirror fix on name output
- routers: add missing error check
9 years ago
Peter Smit 0009a1d2b1 Fix access for team mode update 10 years ago
Unknwon 6d0f3a07d4 code fix #941 caution: undertest 10 years ago
Peter Smit 6c1ee384f1 Merge remote-tracking branch 'mine/access_refactor' into access_refactor
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
10 years ago
Peter Smit 0a4cda0dd4 Refactoring of the Access Table
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.
10 years ago
Unknwon 485ea6f14f models: make code change for session issue with SQLite3 #739 10 years ago
Peter Smit 0d158e569b Change constants to UPPERCASE_WITH_UNDERSCORE style 10 years ago
Peter Smit 4e79adf6b5 Refactoring of the Access Table
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.
10 years ago
Unknwon ac4a10456e api: able to create repo and fix #726
- POST /user/repos
- POST /org/:org/repos
10 years ago
Joseph Crail 39c068400e Fix spelling errors in comments. 10 years ago
Unknwon 8ea7ba3afa fix #644 10 years ago
Unknwon c04aea8d9d Fix #540 10 years ago
Unknwon 0d7b9065c6 Fix #540 10 years ago
lunnyxiao e848b17fab bug fixed for #540 10 years ago
Unknwon a2cac952a4 Prepare 0.5 release 10 years ago
Unknwon d2aff9a46a Continue working on new admin pages 10 years ago
Unknwon 1aec1a2dda Finish new admin dashboard 10 years ago
Unknwon 9baf2b38d0 Bug fix on organization 10 years ago
Unknwon 74b31566cf Finsih add/remove repo in organization 10 years ago
Unknwon 21a1b8e5a3 Finish new edit team page, add member to team 10 years ago
Unknwon a60edbe88c Add/remove member need add/remove access to repositories as well 10 years ago
Unknwon bba707de36 Finish team list, create new team, join/leave team page 10 years ago
Unknwon 36b4c57ff1 Finish new organization members and invitation page 10 years ago
Unknwon 5fbf8531e6 Finish new home page of organization 10 years ago
Unknown fd5412ec47 Work on #274 10 years ago
Unknown 465dc962b5 Finish create organization team 10 years ago
Unknown e4ea5cf598 Finish Teams page 10 years ago
Unknown 5dbfe3c26c Finish organization homepage 10 years ago
Unknown 6e448b0714 Finish delete organization 10 years ago
Unknown 19e9104289 Organization settings page 10 years ago
Unknown 43b33440b5 Work on create organization repo and #257 10 years ago
Unknown e0f9c628c5 Add create organization 10 years ago