Added an endpoint to update a team <-> list relation
This commit is contained in:
@ -11,3 +11,9 @@ func (tl *TeamList) CanDelete(user *User) bool {
|
||||
l, _ := GetListByID(tl.ListID)
|
||||
return l.IsAdmin(user)
|
||||
}
|
||||
|
||||
// CanUpdate checks if the user can update a team <-> list relation
|
||||
func (tl *TeamList) CanUpdate(user *User) bool {
|
||||
l, _ := GetListByID(tl.ListID)
|
||||
return l.IsAdmin(user)
|
||||
}
|
||||
|
Reference in New Issue
Block a user