implemented creation of thing via parambinder
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
package models
|
||||
|
||||
// CanCreate checks if one can create a new team <-> namespace relation
|
||||
func (tn *TeamNamespace) CanCreate(user *User, _ int64) bool {
|
||||
func (tn *TeamNamespace) CanCreate(user *User) bool {
|
||||
n, _ := GetNamespaceByID(tn.NamespaceID)
|
||||
return n.IsAdmin(user)
|
||||
}
|
||||
|
Reference in New Issue
Block a user