Lunny Xiao
c492858551
fix lfs version check warning log when using ssh protocol ( #5501 )
6 years ago
Lunny Xiao
5001cb7594
fix clone wiki failed via ssh ( #5503 )
6 years ago
Lunny Xiao
1c80f31f40
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
Antoine GIRARD
91973106ef
Make gitea serv use api/internal ( #4886 )
* Start to move to internal/private
* Add GetPublicKeyByID
* Add HasDeployKey
* Add private.UpdateDeployKeyUpdated
* Add private.GetUserByKeyID
* Add private.AccessLevel
* Add private.CheckUnitUser
* Fix mistakes I made
* Some cleaning + moving code to separate files
* Fix error handling
* Remove useless error handling for setup
* lint: fix comment on exported func
* fix copyright header
* Fix order of args
6 years ago
Jerry Jacobs
68b4c21557
cmd/serve: pprof cpu and memory profile dumps to disk ( #4560 )
6 years ago
Inon S
b4308d7012
LFS: make HTTP auth period configurable ( #4035 )
* LFS: make HTTP auth period configurable
* Formatting: Removed semicolon
Due to automated fmt-check failure (drone.gitea.io)
* applying code reviews
* Applied code review comment: Change HTTPAuthExpiry to time.Duration
* Updated config cheat sheet
7 years ago
Lauris BH
a90a85e6c5
Do not allow inactive users to access repositories using private keys ( #3887 )
7 years ago
Antoine GIRARD
cb3867c754
Fix SSH auth lfs locks ( #3152 )
* Fix SSH auth LFS locks
* Activate SSH/lock test
* Remove debug
* Follow @lunny recommendation for AfterLoad method
7 years ago
Lunny Xiao
d9b3afb0be
Improvements for supporting UI Location ( #3146 )
* improvements for supporting UI Location
* improved the comment
7 years ago
Lunny Xiao
9fb62a93c5
Remove GetRepositoryByRef and add GetRepositoryByOwnerAndName ( #3043 )
* remove GetRepositoryByRef and add GetRepositoryByOwnerAndName
* fix tests
* fix tests bug
* some improvements
7 years ago
Guillaume Dube
d2b5d5ee60
Set session and indexers' data files rel to AppDataPath ( #2192 )
* Set session and indexers' data files rel to AppDataPath
The setting AppDataPath is now relative to the working directory.
The session svc's PROVIDER_CONFIG now defaults to AppDataPath/data/sessions.
The issue indexer's IssuePath now defaults to AppDataPath/indexers/issues.bleves.
* fix bug
7 years ago
Bo-Yi Wu
9a20c48a65
feat: add check misspelling ( #1877 )
8 years ago
Lunny Xiao
5edc4aaa6c
fix admin lost permission caused by #947
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
7d355a42b3
Remove env user salt since no need to use ( #1515 )
* remove env user salt since no need to use
* remove unused variable from update.go
8 years ago
Lunny Xiao
39fc33d4c7
Add internal routes for ssh hook comands ( #1471 )
* add internal routes for ssh hook comands
* fix lint
* add comment on why package named private not internal but the route name is internal
* add comment above package private why package named private not internal but the route name is internal
* remove exp time on internal access
* move routes from /internal to /api/internal
* add comment and defer on UpdatePublicKeyUpdated
8 years ago
Bo-Yi Wu
61cf12ca8c
refactor: show command help message. ( #1486 )
8 years ago
Lunny Xiao
5b03d5933a
refactor update ssh key use time ( #1466 )
8 years ago
Fabian Zaremba
ee9a18c0fd
LFS: Fix SSH authentication for trailing arguments ( #1328 )
Fixes #1296
8 years ago
Lunny Xiao
d8ecf3bd71
Allow push to init a wiki repo ( #1279 )
* allow push to init a wiki repo
* compact error check
8 years ago
Ethan Koenig
c2ba9ca97b
Refactor and fix incorrect comment ( #1247 )
8 years ago
Lunny Xiao
6448b1a381
Move push update to post-receive and protected branch check to pre-receive ( #1030 )
* move all push update to git hook post-receive and protected branch check to git hook pre-receive
* add SSH_ORIGINAL_COMMAND check back
* remove all unused codes
* fix the import
8 years ago
Lunny Xiao
a392789294
Take back control of hooks ( #1006 )
* git: delegate all server-side Git hooks (#1623 )
* create hooks directories
* take control hooks back
* fix lint
* bug fixed and minor changes
* fix imports style
* fix migration scripts
8 years ago