Fixed a bug where it was not possible to give a user access to a namespace

This commit is contained in:
kolaente 2018-09-19 08:03:05 +02:00
parent 4f538abc83
commit 1e993f1e5c
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -3,6 +3,9 @@ package models
// Create creates a new namespace <-> user relation
func (un *NamespaceUser) Create(user *User) (err error) {
// Reset the id
un.ID = 0
// Check if the right is valid
if err := un.Right.isValid(); err != nil {
return err