summaryrefslogtreecommitdiffstats
path: root/models/repo_collaboration.go
diff options
context:
space:
mode:
authorBwko <bouwko@gmail.com>2016-11-28 17:58:59 +0100
committerBwko <bouwko@gmail.com>2016-11-28 17:58:59 +0100
commita5aae1c145b0393012898f1e834b8854e8f98f9c (patch)
treecb2cd6f130c4663b0a1ab35493371bef79884405 /models/repo_collaboration.go
parent27d66855eb642b22852b557cbb8ffd7781d73d4e (diff)
downloadgitea-a5aae1c145b0393012898f1e834b8854e8f98f9c.tar.gz
gitea-a5aae1c145b0393012898f1e834b8854e8f98f9c.zip
Lint models/repo_*
Diffstat (limited to 'models/repo_collaboration.go')
-rw-r--r--models/repo_collaboration.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/models/repo_collaboration.go b/models/repo_collaboration.go
index e5be729895..0561ad86be 100644
--- a/models/repo_collaboration.go
+++ b/models/repo_collaboration.go
@@ -16,6 +16,7 @@ type Collaboration struct {
Mode AccessMode `xorm:"DEFAULT 2 NOT NULL"`
}
+// ModeI18nKey returns the collaboration mode I18n Key
func (c *Collaboration) ModeI18nKey() string {
switch c.Mode {
case AccessModeRead: