layout->addWidget(indicator);
/*
- * Don't send the reshare permissions for federataed shares
+ * Don't send the reshare permissions for federated shares for servers <9.1
* https://github.com/owncloud/core/issues/22122#issuecomment-185637344
+ * https://github.com/owncloud/client/issues/4996
*/
- if (sharee->type() == Sharee::Federated) {
+ if (sharee->type() == Sharee::Federated
+ && _account->serverVersionInt() < 0x090100) {
int permissions = SharePermissionRead | SharePermissionUpdate;
if (!_isFile) {
permissions |= SharePermissionCreate | SharePermissionDelete;
connect(_ui->permissionsEdit, SIGNAL(clicked(bool)), SLOT(slotEditPermissionsChanged()));
/*
- * We don't show permssion share for federated shares
+ * We don't show permssion share for federated shares with server <9.1
* https://github.com/owncloud/core/issues/22122#issuecomment-185637344
+ * https://github.com/owncloud/client/issues/4996
*/
- if (share->getShareType() == Share::TypeRemote) {
+ if (share->getShareType() == Share::TypeRemote
+ && share->account()->serverVersionInt() < 0x090100) {
_ui->permissionShare->setVisible(false);
_ui->permissionToolButton->setVisible(false);
}