diff options
author | Ethan Koenig <etk39@cornell.edu> | 2017-08-02 01:46:54 -0700 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2017-08-02 11:46:54 +0300 |
commit | f29458bd3a20d2d89638d5031d801c161f456374 (patch) | |
tree | 959c680d58eb5cfd82d719357759963fa7095fe6 /models/org_team.go | |
parent | 539d9f4c3070abb0f024b133a4f53187a76cbcb7 (diff) | |
download | gitea-f29458bd3a20d2d89638d5031d801c161f456374.tar.gz gitea-f29458bd3a20d2d89638d5031d801c161f456374.zip |
EnableUnit() -> UnitEnabled() (#2242)
Diffstat (limited to 'models/org_team.go')
-rw-r--r-- | models/org_team.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/models/org_team.go b/models/org_team.go index 8508a176c1..bc0e12b504 100644 --- a/models/org_team.go +++ b/models/org_team.go @@ -192,8 +192,8 @@ func (t *Team) RemoveRepository(repoID int64) error { return sess.Commit() } -// EnableUnit returns if the team enables unit type t -func (t *Team) EnableUnit(tp UnitType) bool { +// UnitEnabled returns if the team has the given unit type enabled +func (t *Team) UnitEnabled(tp UnitType) bool { if len(t.UnitTypes) == 0 { return true } |