Commit 15ae6e6a authored by David Zeuthen's avatar David Zeuthen
Browse files

always allow uid 0 to ask about authorizations for anyone

parent a7e5318b
......@@ -412,7 +412,7 @@ is_caller_authorized (PolKitDaemon *daemon,
if (!polkit_caller_get_uid (pk_caller, &uid_caller))
goto out;
if (uid_caller_who_wants_to_know != uid_caller) {
if (uid_caller_who_wants_to_know != 0 && uid_caller_who_wants_to_know != uid_caller) {
/* if the uid's are different, the caller who wants to know need to posses
* the authorization
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment