Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<message>Authentication is required to perform this action</message>
<defaults>
<allow_any>auth_admin</allow_any>
<allow_inactive>auth_admin</allow_inactive>
<allow_inactive>no</allow_inactive>
<allow_active>yes</allow_active>
</defaults>
<description xml:lang="en_US">Check Authentication</description>
Expand Down
3 changes: 3 additions & 0 deletions src/plugin-qt/power/system/powermanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,9 @@ bool SystemPowerManager::authorizePowerAction()
return false;
}
if (result != PolkitQt1::Authority::Yes) {
qWarning(logPowerSystem) << "Polkit authorization denied: action=" << kPowerAction
<< "sender=" << sender << "interface=" << message().interface()
<< "member=" << message().member();
sendErrorReply(QDBusError::AccessDenied, QStringLiteral("Authentication failed"));
return false;
}
Expand Down
Loading