From fd6034aaf23af1ce03bcba0babcbe7675ce093ee Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Thu, 18 May 2017 22:54:24 +0800 Subject: Add units to team (#947) * add units to team * fix lint * finish team setting backend * finished permission controll on routes * fix import blank line * add unit check on ssh/http pull and push and fix test failed * fix fixtures data * remove unused code --- modules/auth/org.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'modules/auth/org.go') diff --git a/modules/auth/org.go b/modules/auth/org.go index b9b3f981e1..d6c26b6336 100644 --- a/modules/auth/org.go +++ b/modules/auth/org.go @@ -5,6 +5,8 @@ package auth import ( + "code.gitea.io/gitea/models" + "github.com/go-macaron/binding" "gopkg.in/macaron.v1" ) @@ -53,6 +55,7 @@ type CreateTeamForm struct { TeamName string `binding:"Required;AlphaDashDot;MaxSize(30)"` Description string `binding:"MaxSize(255)"` Permission string + Units []models.UnitType } // Validate validates the fields -- cgit v1.2.3