#include "account.h"
#include "folderman.h"
+#include "sharepermissions.h"
#include "theme.h"
namespace {
roles[IsSharePermissionsChangeInProgress] = "isSharePermissionChangeInProgress";
roles[HideDownloadEnabledRole] = "hideDownload";
roles[IsHideDownloadEnabledChangeInProgress] = "isHideDownloadInProgress";
+ roles[ResharingAllowedRole] = "resharingAllowed";
return roles;
}
|| (share->getShareType() == Share::TypeLink && _accountState->account()->capabilities().sharePublicLinkEnforcePassword()));
case EditingAllowedRole:
return share->getPermissions().testFlag(SharePermissionUpdate);
+ case ResharingAllowedRole:
+ return share->getPermissions().testFlag(SharePermissionShare);
// Deal with roles that only return certain values for link or user/group share types
case NoteEnabledRole: