Revert "update isShared selection check"

This reverts commit 15a41e3fff.
This commit is contained in:
Bogdan Cilibiu
2018-11-26 11:35:45 +02:00
parent 15a41e3fff
commit 7364dbc1ee
@@ -46,16 +46,11 @@ export class ToggleSharedComponent implements OnInit {
isShared(selection) {
// workaround for shared files
if (
selection.first &&
selection.first.entry &&
selection.first.entry.sharedByUser
) {
if (selection.first.entry && selection.first.entry.sharedByUser) {
return true;
}
return (
selection.first &&
selection.first.entry &&
selection.first.entry.properties &&
!!selection.first.entry.properties['qshare:sharedId']