Unknwon
1038916460
models/protect_branch: fix whitelist with invalid 'protect_branch_id' ( #4333 )
...
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.
8 years ago
Unknwon
c238647020
cmd/web: remove dependency version checker
8 years ago
Unknwon
10b93efc4a
repo: able to add organization member as repository collaborator
8 years ago
Unknwon
0696d430c9
protect_branch: only list teams have write access
...
List teams without write access to the repository cause confusion
to make users think members of team could push to the branch.
8 years ago
Unknwon
6072e9a52c
repo: add protect branch whitelist ( #4177 )
...
Add options to add users and teams to whitelist of a protected
branch. This is only available for organizational repositories.
8 years ago
Unknwon
b78e03934d
models/access: hasAccess only need userID not user object
8 years ago
Unknwon
f4aedda13a
org/team: make 'new' as reserved for team name ( #3789 )
8 years ago
Unknwon
ede58ade4c
models/org_team: fix compile error
8 years ago
Unknwon
a2dd9ec2e1
models/org_team: panic when team num_repos is negative ( #3671 )
8 years ago
Unknwon
8f442dde03
Dirty hack for #3905
...
I beileve this is a bug in XORM which wrongly identifies a struct
to inappropriate table name. Also seems to be random.
8 years ago
Unknwon
34b92cdb44
Fix #3905
8 years ago
Unknwon
1f2e173a74
Refactor User.Id to User.ID
9 years ago
Unknwon
b1d41cfa60
#1692 add admin APIs to add/remove a user from teams
9 years ago