remove sharing
This commit is contained in:
@@ -115,15 +115,6 @@ class Item {
|
||||
return [];
|
||||
}
|
||||
|
||||
referencesAffectedBySharingChange() {
|
||||
// should be overriden to determine which references should be decrypted/encrypted
|
||||
return [];
|
||||
}
|
||||
|
||||
isPublic() {
|
||||
return this.presentation_name;
|
||||
}
|
||||
|
||||
isEncrypted() {
|
||||
return this.encryptionEnabled() && this.content.substring(0, 3) === '001' ? true : false;
|
||||
}
|
||||
@@ -131,9 +122,4 @@ class Item {
|
||||
encryptionEnabled() {
|
||||
return this.enc_item_key;
|
||||
}
|
||||
|
||||
presentationURL() {
|
||||
return this.presentation_url;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -65,19 +65,6 @@ class Note extends Item {
|
||||
return this.tags;
|
||||
}
|
||||
|
||||
referencesAffectedBySharingChange() {
|
||||
return super.referencesAffectedBySharingChange();
|
||||
}
|
||||
|
||||
get hasOnePublicTag() {
|
||||
for (var tag of this.tags) {
|
||||
if(tag.isPublic()) {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
safeText() {
|
||||
return this.text || "";
|
||||
}
|
||||
@@ -90,14 +77,6 @@ class Note extends Item {
|
||||
return {uuid: this.uuid}
|
||||
}
|
||||
|
||||
isSharedIndividually() {
|
||||
return this.presentation_name;
|
||||
}
|
||||
|
||||
isPublic() {
|
||||
return super.isPublic() || this.hasOnePublicTag;
|
||||
}
|
||||
|
||||
get content_type() {
|
||||
return "Note";
|
||||
}
|
||||
|
||||
@@ -62,8 +62,4 @@ class Tag extends Item {
|
||||
allReferencedObjects() {
|
||||
return this.notes;
|
||||
}
|
||||
|
||||
referencesAffectedBySharingChange() {
|
||||
return this.notes;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user