Move comment for better understanding
continuous-integration/drone/pr Build is pending
Details
continuous-integration/drone/pr Build is pending
Details
This commit is contained in:
parent
d66beb95e5
commit
b0a87ee8d0
|
@ -313,12 +313,14 @@ func (cp *cwtchPeer) GenerateProtocolEngine(acn connectivity.ACN, bus event.Mana
|
||||||
|
|
||||||
if tor.IsValidHostname(conversation.Handle) {
|
if tor.IsValidHostname(conversation.Handle) {
|
||||||
|
|
||||||
|
// if this profile does not have an ACL version, and the profile is accepted, then migrate
|
||||||
|
// the permissions to the v1 ACL
|
||||||
|
// migrate the old accepted AC to a new fine-grained one
|
||||||
|
// we only do this for previously trusted connections
|
||||||
|
// NOTE: this does not supercede global cwthch experiments settings
|
||||||
|
// if share files is turned off globally then acl.ShareFiles will be ignored.
|
||||||
if _, exists := conversation.GetAttribute(attr.LocalScope, attr.ProfileZone, constants.ACLVersion); !exists {
|
if _, exists := conversation.GetAttribute(attr.LocalScope, attr.ProfileZone, constants.ACLVersion); !exists {
|
||||||
if conversation.Accepted {
|
if conversation.Accepted {
|
||||||
// migrate the old accepted AC to a new fine-grained one
|
|
||||||
// we only do this for previously trusted connections
|
|
||||||
// NOTE: this does not supercede global cwthch experiments settings
|
|
||||||
// if share files is turned off globally then acl.ShareFiles will be ignored.
|
|
||||||
if ac, exists := conversation.ACL[conversation.Handle]; exists {
|
if ac, exists := conversation.ACL[conversation.Handle]; exists {
|
||||||
ac.ShareFiles = true
|
ac.ShareFiles = true
|
||||||
ac.RenderImages = true
|
ac.RenderImages = true
|
||||||
|
|
Loading…
Reference in New Issue