zeripath
be666b03ee
Trace Logging on Permission Denied & ColorFormat ( #6618 )
...
* Add log.ColorFormat and log.ColorFormatted
Structs can now implement log.ColorFormatted to provide their own
colored format when logged with `%-v` or additional flags.
Signed-off-by: Andrew Thornton <art27@cantab.net>
* Add basic ColorFormat to repository and user
Signed-off-by: Andrew Thornton <art27@cantab.net>
* Add basic ColorFormat to access and unit
Signed-off-by: Andrew Thornton <art27@cantab.net>
* Add ColorFormat to permission and on trace log it
Signed-off-by: Andrew Thornton <art27@cantab.net>
* Add log.NewColoredIDValue to make ID value coloring consistent
Signed-off-by: Andrew Thornton <art27@cantab.net>
* formatting changes
* Add some better tracing to permission denied for read issues/pulls
Signed-off-by: Andrew Thornton <art27@cantab.net>
* Add Trace logging on permission denied
Signed-off-by: Andrew Thornton <art27@cantab.net>
* Remove isTrace() check from deferred func
* Adjust repo and allow logging of team
* use FormatInt instead of Itoa
* Add blank line
Signed-off-by: Andrew Thornton <art27@cantab.net>
* Update access.go
6 years ago
Lunny Xiao
eabbddcd98
Restrict permission check on repositories and fix some problems ( #5314 )
...
* fix units permission problems
* fix some bugs and merge LoadUnits to repoAssignment
* refactor permission struct and add some copyright heads
* remove unused codes
* fix routes units check
* improve permission check
* add unit tests for permission
* fix typo
* fix tests
* fix some routes
* fix api permission check
* improve permission check
* fix some permission check
* fix tests
* fix tests
* improve some permission check
* fix some permission check
* refactor AccessLevel
* fix bug
* fix tests
* fix tests
* fix tests
* fix AccessLevel
* rename CanAccess
* fix tests
* fix comment
* fix bug
* add missing unit for test repos
* fix bug
* rename some functions
* fix routes check
6 years ago
Ethan Koenig
ec0ae5d50c
Refactor and fix incorrect comment ( #1247 )
8 years ago
Ethan Koenig
c5f0d4b1a0
Fix SQL bug in models/access ( #583 )
...
Previously got a 'relation repo_access does not exist' error in User_GetRepositoryAccesses
8 years ago
Ethan Koenig
1207bda94b
Fix typos in models/ ( #576 )
8 years ago
Lunny Xiao
c463b1b8cb
Optimization for user.GetRepositoryAccesses to reduce db query times ( #495 )
...
* optimization for user.GetRepositoryAccesses to reduce db query times
* fix missing cache
8 years ago
Bwko
2bb1601d7c
Lint models/access.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
Sandro Santilli
f388661bda
ACCESS_MODE_* -> AccessMode*
8 years ago
Rémy Boulanouar
2d68bd1ef9
Change import reference to match gitea instead of gogs ( #37 )
8 years ago
Unknwon
e74630ae3b
#1384 add pagination for repositories
9 years ago
Unknwon
1f2e173a74
Refactor User.Id to User.ID
9 years ago
Unknwon
e6f927f61a
#1692 api: admin list and create team under organization
9 years ago
Marin Jankovski
1314ba219e
Updated and created were appended with _unix. Fresh databases have only the newly named fields.
9 years ago
Unknwon
045f14fbd0
#1146 finsih UI work for access mode of collaborators
...
Collaborators have write access as default, and can be changed via repository
collaboration settings page to change between read, write and admin.
9 years ago
Unknwon
2158e6fc43
fix #1997
9 years ago
Unknwon
4d3138cd10
fix #1953
9 years ago
Unknwon
f8ae161c74
fix #1302
9 years ago
Unknwon
ff35a37769
#1458 : Authorities were messed up when using mysql database
9 years ago
Unknwon
1453e91f41
minor fix on API response
9 years ago
Unknwon
dea3a8c6a4
WIP: create PR - choose branch
9 years ago
Unknwon
04e596f984
#1369 : nil pointer when add repo to team
10 years ago
Unknwon
663c28beb6
#1279 : Removing user from collaboration removes repositiory
10 years ago
Unknwon
6f81c05dde
#1143 Team member access lost when adding repository collaborator
...
- fix bug when add a repo to team, all other team members gets access as well
10 years ago
Unknwon
588f3215c6
#1040 : dashboard no longer accessible when repo is missing
10 years ago
Unknwon
f44204e944
REAMDE: update
10 years ago
Unknwon
473e265727
models: done testing on new access system
10 years ago
Unknwon
8896c82d34
models: fix issue with transfer repository
...
README: fix typo
10 years ago
Unknwon
ee68a826a5
v4 migration, merge 'dev', clean code and mirror fix
10 years ago
Unknwon
25f5a8d798
some fixes, but not done yet!
10 years ago
Unknwon
6d0f3a07d4
code fix #941 caution: undertest
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
7e7160eefd
first pass work on migration #925
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
Peter Smit
fd1df86c44
Fix dashboard issue after collaboration migration
10 years ago
Peter Smit
76f8904718
Introducing Collaboration Struct
10 years ago
Unknwon
74b31566cf
Finsih add/remove repo in organization
10 years ago
Unknown
e0f9c628c5
Add create organization
11 years ago
Unknown
ad5ec45dd6
Fix #165
11 years ago
Unknown
914ffa496f
Show private repository activities in dashboard if has access
11 years ago
Unknown
e867283406
Assignee back end
11 years ago
Unknown
f6c4fbeb37
Collaborator
11 years ago
Unknown
49c01c0b57
Fix import path
11 years ago
Unknown
90f6aa8cd1
Add repo mirror and import
11 years ago
Unknown
33aa4f7438
Support private repo
11 years ago
zhsso
a4cbe79567
fix
11 years ago
zhsso
f3ed11d177
mistakes
11 years ago
Unknown
e41ab839c7
Use session for rolling back
11 years ago