Permalink
Browse files

Ignore unknown actions

  • Loading branch information...
Bahadır Kandemir
Bahadır Kandemir committed Nov 26, 2010
1 parent 922e51a commit 48d6cd4bfcd71d16b2f6ad9753f01a922990e1f3
Showing with 5 additions and 0 deletions.
  1. +5 −0 polkit.py
View
@@ -105,6 +105,8 @@ def auth_list_all():
cp.optionxform = str
cp.read(DB_FILE)
+ actions = action_list()
+
for title in cp.sections():
if not title.startswith("user:"):
continue
@@ -115,6 +117,9 @@ def auth_list_all():
except KeyError:
continue
+ if _action_id not in actions:
+ continue
+
auth = {
"action_id": _action_id,
"uid": _uid,

0 comments on commit 48d6cd4

Please sign in to comment.