mirror of
https://github.com/anyproto/anytype-heart.git
synced 2025-06-07 21:37:04 +09:00
Fix lint
This commit is contained in:
parent
8cc1320f3e
commit
0a4097290a
1 changed files with 1 additions and 1 deletions
|
@ -116,7 +116,7 @@ func (s *service) createObjectInSpace(
|
|||
}
|
||||
details = internalflag.PutToDetails(details, req.InternalFlags)
|
||||
|
||||
if t, _ := bundle.GetType(req.ObjectTypeKey); t != nil && t.RestrictObjectCreation && req.ObjectTypeKey != bundle.TypeKeyTemplate {
|
||||
if t, e := bundle.GetType(req.ObjectTypeKey); e == nil && t.RestrictObjectCreation && req.ObjectTypeKey != bundle.TypeKeyTemplate {
|
||||
return "", nil, errors.Wrap(restriction.ErrRestricted, "creation of this object type is restricted")
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue