mirror of
https://github.com/etesync/android
synced 2024-12-23 15:18:14 +00:00
Disallow sharing of journals with version < 2.
The reason for that is that before version 2, all the journals of a particular user shared the same encryption key, which means, sharing a journal of version one, would essentially give away the encryption key of all of its journals, even the private ones. This is thus blocked for security reasons.
This commit is contained in:
parent
4c47384198
commit
eeda46338d
@ -197,6 +197,18 @@ public class ViewCollectionActivity extends AppCompatActivity implements Refresh
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
|
||||
}
|
||||
}).create();
|
||||
dialog.show();
|
||||
} else if (info.version < 2) {
|
||||
AlertDialog dialog = new AlertDialog.Builder(this)
|
||||
.setIcon(R.drawable.ic_info_dark)
|
||||
.setTitle(R.string.not_allowed_title)
|
||||
.setMessage(R.string.members_old_journals_not_allowed)
|
||||
.setPositiveButton(android.R.string.yes, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
|
||||
}
|
||||
}).create();
|
||||
dialog.show();
|
||||
|
@ -107,6 +107,7 @@
|
||||
<string name="not_allowed_title">Not Allowed</string>
|
||||
<string name="edit_owner_only">Only the owner of this collection (%s) is allowed to edit it.</string>
|
||||
<string name="members_address_book_not_allowed">Sharing of address books is currently not supported.</string>
|
||||
<string name="members_old_journals_not_allowed">Sharing of old-style journals is not allowed. In order to share this journal, create a new one, and copy its contents over using the \"import\" dialog. If you are experiencing any issues, please contact support.</string>
|
||||
|
||||
<!-- CollectionMembers -->
|
||||
<string name="collection_members_title">Members</string>
|
||||
|
Loading…
Reference in New Issue
Block a user