mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-04 13:50:39 +00:00
Lint models/repo_*
This commit is contained in:
parent
27d66855eb
commit
a5aae1c145
2 changed files with 13 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue