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

@ -93,8 +93,8 @@ func (l *List) CanUpdate(doer *User, id int64) bool {
}
// CanCreate checks if the user can update a list
func (l *List) CanCreate(doer *User, nID int64) bool {
func (l *List) CanCreate(doer *User) bool {
// A user can create a list if he has write access to the namespace
n, _ := GetNamespaceByID(nID)
n, _ := GetNamespaceByID(l.NamespaceID)
return n.CanWrite(doer)
}