Fixed a bug where it was not possible to give a user access to a namespace
This commit is contained in:
parent
4f538abc83
commit
1e993f1e5c
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user