diff options
author | Vishvananda Ishaya <vishvananda@gmail.com> | 2012-02-08 23:37:31 +0000 |
---|---|---|
committer | Vishvananda Ishaya <vishvananda@gmail.com> | 2012-02-10 16:57:03 -0800 |
commit | 79faa28f0389f427956ca72b3a902864ae5856f5 (patch) | |
tree | aa75b03f76de8da61a2551a3e085a40e17a0d484 /keystone/policy | |
parent | d049c19227d2702c5c5ac545d195465eac55246d (diff) | |
download | keystone-79faa28f0389f427956ca72b3a902864ae5856f5.tar.gz keystone-79faa28f0389f427956ca72b3a902864ae5856f5.tar.xz keystone-79faa28f0389f427956ca72b3a902864ae5856f5.zip |
Fixes role checking for admin check
Change-Id: I6afe52033996b56aa38033017e0ce2f37c471592
Diffstat (limited to 'keystone/policy')
-rw-r--r-- | keystone/policy/backends/simple.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/keystone/policy/backends/simple.py b/keystone/policy/backends/simple.py index 206ab574..ec4840fe 100644 --- a/keystone/policy/backends/simple.py +++ b/keystone/policy/backends/simple.py @@ -17,5 +17,7 @@ class SimpleMatch(object): for requirement in target: key, match = requirement.split(':', 1) check = credentials.get(key) - if check == match: + if check is None or isinstance(check, basestring): + check = [check] + if match in check: return True |