aboutsummaryrefslogtreecommitdiff
path: root/models/org_team.go
Commit message (Collapse)AuthorAge
* internal: move packages under this directory (#5836)Unknwon2019-10-24
| | | | | | | | | | | | | | | | | | * Rename pkg -> internal * Rename routes -> route * Move route -> internal/route * Rename models -> db * Move db -> internal/db * Fix route2 -> route * Move cmd -> internal/cmd * Bump version
* Enable Go modules (#5835)Unknwon2019-10-23
| | | | | | | | | | | | | | | | * Remove vendor * Enable Go modules * ci: add command to fetch dependencies * ci: update setting * ci: update settings * Require Go 1.11 * Rename module name to gogs.io/gogs
* routes/api: change status handle to new styleUnknwon2018-12-01
| | | | Also fixed one bug that did not catch team not found error.
* models: rename Id to IDUnknwon2018-08-16
|
* models: skip JSON for fields skipped by XORMUnknwon2018-06-09
| | | | Reduce output JSON size by backup command
* *: rename "gogits" to "gogs"Unknwon2018-05-27
|
* Refactoring: remove sessionRelease()Unknwon2017-06-11
| | | | XORM supports automatic roll back in session Close() already.
* models/org_team: getUserTeams uses includes always -1 in the IN statement ↵Pablo Saavedra2017-05-29
| | | | | | | | | | | | (#4412) Ensure that the IN clause contains one value at least. The idea is avoid a syntax error in the SQL sentence and rollbacks in the transactions. For example: ERROR: syntax error at or near ")" LINE 1: ...RE ... and team.id IN (); We will always add the -1 value in the IN list.
* models: remove redundant tags for primary keysUnknwon2017-05-21
|
* models/protect_branch: fix whitelist with invalid 'protect_branch_id' (#4333)Unknwon2017-03-27
| | | | | | | | If user creates a protect branch for the first time (which has ID=0), it generates invalid whitelist records with 'protect_branch_id=0'. This prevents future updates of protect branch whitelist. Migration: remove existing invalid protect branch whitelist records.
* cmd/web: remove dependency version checkerUnknwon2017-03-25
|
* repo: able to add organization member as repository collaboratorUnknwon2017-02-24
|
* protect_branch: only list teams have write accessUnknwon2017-02-24
| | | | | List teams without write access to the repository cause confusion to make users think members of team could push to the branch.
* repo: add protect branch whitelist (#4177)Unknwon2017-02-23
| | | | | Add options to add users and teams to whitelist of a protected branch. This is only available for organizational repositories.
* models/access: hasAccess only need userID not user objectUnknwon2017-02-23
|
* org/team: make 'new' as reserved for team name (#3789)Unknwon2017-02-14
|
* models/org_team: fix compile errorUnknwon2017-02-08
|
* models/org_team: panic when team num_repos is negative (#3671)Unknwon2017-02-08
|
* Dirty hack for #3905Unknwon2016-12-21
| | | | | I beileve this is a bug in XORM which wrongly identifies a struct to inappropriate table name. Also seems to be random.
* Fix #3905Unknwon2016-12-20
|
* Refactor User.Id to User.IDUnknwon2016-07-24
|
* #1692 add admin APIs to add/remove a user from teamsUnknwon2016-03-25