diff options
author | Tomas Babej <tbabej@redhat.com> | 2012-08-22 10:39:01 -0400 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2012-08-29 16:02:43 -0400 |
commit | 7e9eb9caad731ef3ecb8e733a4979d375ec5a1b5 (patch) | |
tree | 89b62394a3f7f892efaf7d9bfc8b69ed5b63572d /ipalib | |
parent | edbcd28f44fb5c123440c246965166d5947554e6 (diff) | |
download | freeipa-7e9eb9caad731ef3ecb8e733a4979d375ec5a1b5.tar.gz freeipa-7e9eb9caad731ef3ecb8e733a4979d375ec5a1b5.tar.xz freeipa-7e9eb9caad731ef3ecb8e733a4979d375ec5a1b5.zip |
Fixes different behaviour of permission-mod and show.
Both commands now produce the same output regarding
the attributelevelrights.
https://fedorahosted.org/freeipa/ticket/2875
Diffstat (limited to 'ipalib')
-rw-r--r-- | ipalib/plugins/permission.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ipalib/plugins/permission.py b/ipalib/plugins/permission.py index befa74df8..75b210910 100644 --- a/ipalib/plugins/permission.py +++ b/ipalib/plugins/permission.py @@ -393,8 +393,10 @@ class permission_mod(LDAPUpdate): cn = options['rename'] # rename finished - common_options = filter_options(options, ['all', 'raw']) + # all common options to permission-mod and show need to be listed here + common_options = filter_options(options, ['all', 'raw', 'rights']) result = self.api.Command.permission_show(cn, **common_options)['result'] + for r in result: if not r.startswith('member_'): entry_attrs[r] = result[r] |