Peter Smit
0fa209d07b
Update/simplify fix that owners also see actions on their repositories
9 år sedan
Stefan-Code
6e341e26b3
added less compile script
9 år sedan
无闻
a307574fbc
Merge pull request #962 from phsmit/dont_mention_php
Remove the "PHP" style formatting function
9 år sedan
无闻
58e28e5d9d
Merge pull request #958 from phsmit/fix_mirror_access
Make sure that a mirror can't be written to by http or ssh
9 år sedan
无闻
4e18bbf1cf
Merge pull request #963 from phsmit/goget
Remove GoGet option from repository and handle it with ?go-get=1 instead
9 år sedan
Peter Smit
e6fc58a744
Remove GoGet option from repository and handle it with ?go-get=1 instead
The normal go get protocol is to show the go-import meta tag when ?go-get=1 is appended to the url. This commit implements that behaviour and cleans the go-get option from the repository settings page.
9 år sedan
Peter Smit
aa68e86206
Rewrite/simplify gogs serve
9 år sedan
Peter Smit
7759b9ee6e
Remove the "PHP" style formatting function
The "PHP" formatting function doesn't add anything, except an undocumented date format.
All usages in the templates have been replaced with DateFmtShort and DateFmtLong for convenience.
9 år sedan
Peter Smit
b6519f78c7
Remove collaborators when removing and transferring repository
9 år sedan
Peter Smit
455fad0fbd
Fix that owners also see actions on their repositories
This is a balance between speed and nice code, where speed has won. To prevent a repository query for each action the ownername is match with the current user.
It would be "cleaner" or "better" if we fetch the repository each time. Another option is to add the RepoOwnerID to action
9 år sedan
Peter Smit
ed89b39984
Updating context and fixing permission issues
The boolean flags in the repo context have been replaced with mode and two methods
Also, the permissions have been brought more in line with https://help.github.com/articles/permission-levels-for-an-organization-repository/ , Admin Team members are able to change settings of their repositories.
9 år sedan
Peter Smit
f9454cc32c
Make sure that a mirror can't be written to by http or ssh
9 år sedan
Unknwon
d85366930c
update travis.yml
9 år sedan
Unknwon
f625665d8d
modules/setting: add abs path check before add workdir prefix
9 år sedan
无闻
d047811c1a
Merge pull request #956 from bpollack/docfix
Fix a bunch of small typos and formatting quirks
9 år sedan
Unknwon
685ed1f807
models: fix XORM API break
cmd/web.go: check version after load config
9 år sedan
Benjamin Pollack
8c1986181d
Fix a bunch of small typos and formatting quirks
9 år sedan
Unknwon
a38e4a0b02
routers/install.go: able to keep previous custom settings for 2nd time install
- .gopmfile: update all commits
9 år sedan
无闻
cd6a2b78a7
Merge pull request #951 from phsmit/fix_team_update
Fix access for team mode update
9 år sedan
Peter Smit
0009a1d2b1
Fix access for team mode update
9 år sedan
Unknwon
def39d191b
conf/locale: update all locales
9 år sedan
无闻
cdd8f7c53a
Merge pull request #949 from phsmit/different_access_migration
Rewrite of access migration
9 år sedan
Peter Smit
ddf7014b9b
Rewrite of access migration
The old migration had a few issues:
- It left old column names around
- It did not give the right access levels for owners and admins
Also, this includes a migration that fixes the authorization of owner teams, which was previously ORG_ADMIN (instead of ORG_OWNER)
9 år sedan
Dmitry Azhichakov
2692d4aa49
Make conf/app.ini changes match the style
9 år sedan
Unknwon
25f5a8d798
some fixes, but not done yet!
9 år sedan
Dmitry Azhichakov
3aaf292ba8
Fix "forcing" client certificate for SMTP
9 år sedan
Unknwon
6b7d35eade
fix mirror issues uncaught #941
9 år sedan
Unknwon
6d0f3a07d4
code fix #941 caution: undertest
9 år sedan
Unknwon
b99c4baab2
models/migrations: finish accessRefactor
9 år sedan
无闻
7fda0cdb93
Merge pull request #941 from phsmit/access_refactor
Access refactor
9 år sedan
Unknwon
0b3722c359
models/migrations: fix little logic error
9 år sedan
无闻
31eb49c3ae
Merge pull request #940 from phsmit/migration_update
Some comments and improvements for migrations
9 år sedan
Unknwon
67a9416ae5
templates/user/auth/signin.tmpl: hide sign up prompt when registration is disabled #884
9 år sedan
Dmitry Azhichakov
8a6c86644e
New feature: SMTP connection may use client certificate.
New config keys in [mailer] section:
- CERT_FILE: path to a certificate file.
- KEY_FILE: path to a key file.
9 år sedan
Peter Smit
6c1ee384f1
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
9 år sedan
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.
9 år sedan
Peter Smit
2804784df9
Some comments and improvements for migrations
9 år sedan
Unknwon
876a856759
models/migartions: make Migration as interface and use session
9 år sedan
Unknwon
7e7160eefd
first pass work on migration #925
9 år sedan
Unknwon
c5c467a9cd
Merge branch 'dev' of github.com:gogits/gogs into access
9 år sedan
Unknwon
c7a042ef36
Merge branch 'access' of github.com:gogits/gogs into access
9 år sedan
无闻
e805fdb29c
Merge pull request #925 from phsmit/newcollaboration
Collaboration
9 år sedan
无闻
0af74b36ad
Merge pull request #937 from Stefan-Code/dev
Changes to repo-header-download-drop
9 år sedan
Unknwon
d02e45f985
better naming on #891
9 år sedan
Stefan-Code
e5d6f4ce56
Changes to repo-header-download-drop, different repo-clone-url input behaviour
9 år sedan
Unknwon
485ea6f14f
models: make code change for session issue with SQLite3 #739
9 år sedan
Unknwon
28580aee63
modules/middleware/auth.go: remove uncheck login for watch a repo #929
9 år sedan
Unknwon
6a23252edc
able to allow insecure certification of webhook for #891
9 år sedan
Unknwon
e407df54f0
update gopmfile and README
9 år sedan
Unknwon
bad533a219
models/repo.go: add update hook when migrate for #789
9 år sedan