Implemented creating a team <-> list relation
This commit is contained in:
7
models/team_list_rights.go
Normal file
7
models/team_list_rights.go
Normal file
@ -0,0 +1,7 @@
|
||||
package models
|
||||
|
||||
// CanCreate checks if the use can create a team <-> list relation
|
||||
func (tl *TeamList) CanCreate(user *User) bool {
|
||||
l, _ := GetListByID(tl.ListID)
|
||||
return l.IsAdmin(user)
|
||||
}
|
Reference in New Issue
Block a user