mirror of
https://github.com/anyproto/any-sync.git
synced 2025-06-08 05:57:03 +09:00
Remove unused method
This commit is contained in:
parent
355ab1fda0
commit
55dfe8114a
1 changed files with 0 additions and 10 deletions
|
@ -266,16 +266,6 @@ func (c *aclSpaceClient) GenerateInvite(isRevoke, isRequestToJoin bool, permissi
|
|||
}, nil
|
||||
}
|
||||
|
||||
func (c *aclSpaceClient) GenerateAnyoneCanJoinInvite(permissions list.AclPermissions) (resp list.InviteResult, err error) {
|
||||
c.acl.Lock()
|
||||
defer c.acl.Unlock()
|
||||
anyoneInvites := c.acl.AclState().Invites(aclrecordproto.AclInviteType_AnyoneCanJoin)
|
||||
if len(anyoneInvites) > 0 {
|
||||
return list.InviteResult{}, list.ErrDuplicateInvites
|
||||
}
|
||||
return c.acl.RecordBuilder().BuildInviteAnyone(permissions)
|
||||
}
|
||||
|
||||
func (c *aclSpaceClient) AddRecord(ctx context.Context, consRec *consensusproto.RawRecord) (err error) {
|
||||
return c.sendRecordAndUpdate(ctx, c.spaceId, consRec)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue