--- a/src/core/kauthorized.cpp +++ b/src/core/kauthorized.cpp @@ -216,8 +216,20 @@ bool KAuthorized::authorize(const QStrin return true; } + bool default_authorized = true; + if( genericAction == QStringLiteral("action/help_donate") ) { + switch(QLocale::system().country()) { + case QLocale::Belarus: + case QLocale::Russia: + // unable to transfer money + default_authorized = false; + break; + default: + break; + } + } KConfigGroup cg(KSharedConfig::openConfig(), "KDE Action Restrictions"); - return cg.readEntry(genericAction, true); + return cg.readEntry(genericAction, default_authorized); } bool KAuthorized::authorize(KAuthorized::GenericRestriction action)