Morgan Bazalgette
8c916631f0
Handle refactor ( #3339 )
* Replace all ctx.Handle with ctx.ServerError or ctx.NotFound
* Change Handle(403) to NotFound, avoid using macaron's NotFound
7 years ago
Sasha Varlamov
78d4d96741
Allow adding collaborators with (fullname) ( #3103 )
* Allow adding collaborators with (fullname)
Signed-off-by: Sasha Varlamov <sasha@sashavarlamov.com>
* Refactor username suffix to utils pkg
Signed-off-by: Sasha Varlamov <sasha@sashavarlamov.com>
7 years ago
Lunny Xiao
b3a8961b2e
Fix error when add user has full name to team ( #2973 )
* fix error when add user has full name to team
* add comment for extra uname check
7 years ago
Lauris BH
e687d24d8e
Remove unit types commits and settings ( #2161 )
* Remove unit types commits and settings
* Can not limit units in administrator teams
* Limit changing units only to teams with read and write access mode
* Small code optimization
8 years ago
Lunny Xiao
c726c22323
fix bug to deny to add orgnization as a member of an orgnization or team ( #1815 )
8 years ago
Lunny Xiao
c694c70008
Add units to team ( #947 )
* add units to team
* fix lint
* finish team setting backend
* finished permission controll on routes
* fix import blank line
* add unit check on ssh/http pull and push and fix test failed
* fix fixtures data
* remove unused code
8 years ago
Lunny Xiao
5d8ba06363
fix leave team 404 ( #1154 )
8 years ago
Lunny Xiao
cb56320d28
golint fixed for parts of routers root, dev, user and org dirs ( #167 )
* golint fixed for parts of routers root, dev and org dirs
* add user/auth.go golint fixed
* rename unnecessary exported to unexported and user dir golint fixed
8 years ago
Sandro Santilli
cb1b3cc148
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
Sandro Santilli
58cc4e56fa
ACCESS_MODE_* -> AccessMode*
8 years ago
Rémy Boulanouar
9712d5ee89
Change import reference to match gitea instead of gogs ( #37 )
8 years ago
Unknwon
3b42ab0e57
Refactor User.Id to User.ID
9 years ago
Unknwon
0b2c7a6284
#1692 api: admin list and create team under organization
9 years ago
Unknwon
574a4d69e8
Rename module: middleware -> context
9 years ago
Florian Kaiser
a850bdd9e7
Remove unnecessary comments
9 years ago
Florian Kaiser
88ae14a8a6
Only show teams the user has access to
9 years ago
Unknwon
0c6f6be314
#2497 incorrect error handle for team name
9 years ago
Unknwon
a14c20813c
fix #650
9 years ago
Unknwon
893b66bcac
allow anonymous SSH clone
10 years ago
Unknwon
4ec2e465f9
#1067 : Deleting users should remove them from collaborator lists
- fix delete user but repository watches are not decreased
10 years ago
Unknwon
0fa1c5ae0f
#1040 : dashboard no longer accessible when repo is missing
10 years ago
Unknwon
56a29ce158
v4 migration, merge 'dev', clean code and mirror fix
10 years ago
Peter Smit
71ea4a71bd
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
81083a9415
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
f771ec8c6c
models: make code change for session issue with SQLite3 #739
10 years ago
Peter Smit
5af7b2864c
Change constants to UPPERCASE_WITH_UNDERSCORE style
10 years ago
Peter Smit
5deb52e1b8
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
85c9f7c5f3
Issue: Show error prompt when add repository to team and it does not exist #533
10 years ago
Unknwon
a2cac952a4
Prepare 0.5 release
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
11 years ago
Unknwon
fa60502a70
Working on organization pages
11 years ago
Unknwon
a60edbe88c
Add/remove member need add/remove access to repositories as well
11 years ago
Unknwon
bba707de36
Finish team list, create new team, join/leave team page
11 years ago
Unknwon
5c4bc3c848
Huge updates!!!!! Be careful to merge!!!!
11 years ago
fuxiaohei
c127d84777
add organization team-single page
11 years ago
Unknown
465dc962b5
Finish create organization team
11 years ago
Unknown
e4ea5cf598
Finish Teams page
11 years ago
fuxiaohei
1d55ecd29c
add organization team-create page
11 years ago
fuxiaohei
b5ba2bd268
add organization team-create page
11 years ago