feat: (wip) authorize note access

This commit is contained in:
Baptiste Grob
2021-01-05 12:58:07 +01:00
parent 7261c2f119
commit 252183a7c5
2 changed files with 11 additions and 28 deletions

View File

@@ -740,14 +740,6 @@ class EditorViewCtrl extends PureViewCtrl<{}, EditorState> {
mutator.protected = !this.note.protected
}
);
/** Show privileges manager if protection is not yet set up */
this.application.privilegesService!.actionHasPrivilegesConfigured(
ProtectedAction.ViewProtectedNotes
).then((configured) => {
if (!configured) {
this.application.presentPrivilegesManagementModal();
}
});
}
toggleNotePreview() {