mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-31 11:52:10 +00:00
EnableUnit() -> UnitEnabled() (#2242)
This commit is contained in:
parent
539d9f4c30
commit
f29458bd3a
9 changed files with 29 additions and 36 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue