gnome-lirc-properties r70 - in trunk: . gnome_lirc_properties



Author: hadess
Date: Wed Oct 22 13:56:38 2008
New Revision: 70
URL: http://svn.gnome.org/viewvc/gnome-lirc-properties?rev=70&view=rev

Log:
2008-10-22  Bastien Nocera  <hadess hadess net>

	* gnome_lirc_properties/policykit.py: Use
	"authorizes == yes" to make sure we don't tell the program
	we're authorised when the answer is auth_self_keep_always
	or similar (Closes: #556745)



Modified:
   trunk/ChangeLog
   trunk/gnome_lirc_properties/policykit.py

Modified: trunk/gnome_lirc_properties/policykit.py
==============================================================================
--- trunk/gnome_lirc_properties/policykit.py	(original)
+++ trunk/gnome_lirc_properties/policykit.py	Wed Oct 22 13:56:38 2008
@@ -43,7 +43,7 @@
         authorized = self.policy_kit.IsProcessAuthorized(action_id, pid, False)
         logging.debug('%s: authorized=%r', action_id, authorized)
 
-        return ('no' != authorized)
+        return ('yes' == authorized)
 
     def obtain_authorization(self, widget, action_id=config.POLICY_KIT_ACTION):
         '''



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]