1
0

implemented creation of thing via parambinder

This commit is contained in:
konrad
2018-07-18 08:56:19 +02:00
committed by kolaente
parent ebb5b332b6
commit de95ff40bf
21 changed files with 39 additions and 40 deletions

View File

@ -21,8 +21,8 @@ func (i *ListItem) CanUpdate(doer *User, id int64) bool {
}
// CanCreate determines if a user has the right to create a list item
func (i *ListItem) CanCreate(doer *User, lID int64) bool {
func (i *ListItem) CanCreate(doer *User) bool {
// A user can create an item if he has write acces to its list
list, _ := GetListByID(lID)
list, _ := GetListByID(i.ListID)
return list.CanWrite(doer)
}