mirror of
https://github.com/go-gitea/gitea
synced 2025-07-23 02:38:35 +00:00
EnableUnit() -> UnitEnabled() (#2242)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user