add version manager on favorites, preview, recent and shared (#250)

This commit is contained in:
suzanadirla
2018-03-23 13:08:32 +02:00
committed by Cilibiu Bogdan
parent d7be8cf844
commit ac28a28f94
5 changed files with 35 additions and 0 deletions

View File

@@ -343,4 +343,9 @@ export class PreviewComponent implements OnInit {
canCopyFile(): boolean {
return this.content.canCopyNode(this.node);
}
canManageVersions(): boolean {
return this.node.isFile && this.content.nodeHasPermission(this.node, 'update');
}
}