Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Ignore unknown actions

  • Loading branch information...
commit 48d6cd4bfcd71d16b2f6ad9753f01a922990e1f3 1 parent 922e51a
authored

Showing 1 changed file with 5 additions and 0 deletions. Show diff stats Hide diff stats

  1. 5  polkit.py
5  polkit.py
@@ -105,6 +105,8 @@ def auth_list_all():
105 105
     cp.optionxform = str
106 106
     cp.read(DB_FILE)
107 107
 
  108
+    actions = action_list()
  109
+
108 110
     for title in cp.sections():
109 111
         if not title.startswith("user:"):
110 112
             continue
@@ -115,6 +117,9 @@ def auth_list_all():
115 117
         except KeyError:
116 118
             continue
117 119
 
  120
+        if _action_id not in actions:
  121
+            continue
  122
+
118 123
         auth = {
119 124
             "action_id": _action_id,
120 125
             "uid": _uid,

0 notes on commit 48d6cd4

Please sign in to comment.
Something went wrong with that request. Please try again.