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 years ago
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 years ago
Peter Smit
f9454cc32c
Make sure that a mirror can't be written to by http or ssh
9 years ago
Unknwon
a38e4a0b02
routers/install.go: able to keep previous custom settings for 2nd time install
- .gopmfile: update all commits
9 years ago
Unknwon
6d0f3a07d4
code fix #941 caution: undertest
9 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.
9 years ago
Unknwon
485ea6f14f
models: make code change for session issue with SQLite3 #739
9 years ago
Unknwon
6a23252edc
able to allow insecure certification of webhook for #891
9 years ago
Peter Smit
0d158e569b
Change constants to UPPERCASE_WITH_UNDERSCORE style
9 years ago
Unknwon
f15fa9167a
cmd: code fix for #905
- routers/admin: add rewrite update hook operation
- conf/locale: update locale file due to ini behavior changes
- cmd/cert_stub.go: remove useless code
- cmd/fix.go: no longer need fix command(at least now)
9 years ago
Lauris BH
00653e52ee
Get username, name, surname and e-mail from LDAP server
9 years ago
Unknwon
ba77a3b0b4
routers/repo/http.go: allow HTTP push/pull by token for #845
9 years ago
Unknwon
216683004e
code fix for #908 , and work for #884
9 years ago
Unknwon
5a99e9a37b
models/action.go: add action reopen for #462
- models/issue.go: format comment type names
9 years ago
Unknwon
afccd0a3ee
models/action.go: mirror fix on #892
- modules/base/markdown.go: fix issue link issue
- routers/repo/view.go: remove useless code
9 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.
9 years ago
Tony Tsang
fc6d80d619
Link to previous commited source file (diff.view_file button) instead of returning 404 for deleted files.
9 years ago
Raphael Randschau
3c65265871
Hide the registration button depending on the setting
9 years ago
Peter Smit
1ab09e4f1b
Add option to provide configuration file on command line
9 years ago
Unknwon
89ea3e1acc
routers: save partial config when install
9 years ago
Unknwon
b293b6eaa6
cmd: CMD option for port number of `gogs web` to prevent first time run conflict
- routers: use new binding convention to simplify code
- templates: able to set HTTP port number in install page
9 years ago
Unknwon
32152d2363
routers/repo: set raw page content type to 'text/plain' #828
9 years ago
Unknwon
37fcc8daf2
modules/base: add RenderCommitMessage with XSS-safe and special links
- update russian locale
9 years ago
Peter Smit
76f8904718
Introducing Collaboration Struct
9 years ago
Christopher Brickley
d0827e5d5e
allow http push by token - #842
9 years ago
Peter Smit
6251626de4
Implement #798 Flexible ssh-key input
It is now possible to input ssh keys in a number of formats: openssh, SSH2 or just the base64 encoded key.
10 years ago
Unknwon
c73e9057ae
Optmize git-fsck options and fix #820
10 years ago
Peter Smit
d016eaaa09
Fix #807 parse the userinfo with the golang tools
Note, this is now only fixed with Go version >= 1.4.2, see this bug in Go: 07d86b1f2d
10 years ago
Unknwon
677b1ec627
fix #808
10 years ago
fzerorubigd
6643647687
add afunction to rewrite all public keys on admin request
refs #763
10 years ago
Unknwon
bd555551ce
fix #801
10 years ago
Thomas Laroche
e948c7c262
Fix #795
10 years ago
Unknwon
81a44e4cd0
fix API changes
10 years ago
Unknwon
79537467da
mirror fix and update
10 years ago
Peter
20b5c23a19
Small fixes to multiple_emails feature
10 years ago
Unknwon
0a697517ac
work on #754
10 years ago
Unknwon
c4820f119d
work on #754
10 years ago
Unknwon
57b3be4016
work on #756
10 years ago
Peter
b033f2f535
Finish method for having multiple emails/user.
All basics are implemented. Missing are the right (localized) strings
and the page markup could have a look at by a frontend guy.
10 years ago
Peter
ec71d538fc
Method for activating email addresses through verification email
10 years ago
Unknwon
d01f2f3c22
fix #751
10 years ago
Unknwon
1a5aa5e0c0
fix #741
10 years ago
Unknwon
b553ea45ee
modes/repo: incorrect SSH clone URL for #742
10 years ago
Unknwon
ac4a10456e
api: able to create repo and fix #726
- POST /user/repos
- POST /org/:org/repos
10 years ago
Unknwon
2f3a7e53cb
fix #735
10 years ago
codeskyblue
db6c0ebf76
fix git clone error when repo has upper case name
10 years ago
Unknwon
bc8721fb6c
Finish new UI for release page
10 years ago
Unknwon
9a1fe801e5
fix #711
10 years ago
Joseph Crail
39c068400e
Fix spelling errors in comments.
10 years ago
dennis-smurf
528c075ad6
Added issue link rendering in commit messages
10 years ago