add security check in showConfigurationInterface too

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=834476
This commit is contained in:
Chani Armitage 2008-07-19 03:22:41 +00:00
parent bbcc79fc0e
commit d7bc9f3898

View File

@ -1160,6 +1160,9 @@ void Applet::showConfigurationInterface()
if (!hasConfigurationInterface()) {
return;
}
if (immutability() != Mutable && !KAuthorized::authorize("PlasmaAllowConfigureWhenLocked")) {
return;
}
const QString dialogId = QString("%1settings%2").arg(id()).arg(name());
KConfigDialog * dlg = KConfigDialog::exists(dialogId);