Hello,
This patch exposes object metadata needed for permission WebUI.

https://fedorahosted.org/freeipa/ticket/4201

--
PetrĀ³
From cbebd3328715db4ddd4afe9bdbd6c6edf0bf7148 Mon Sep 17 00:00:00 2001
From: Petr Viktorin <pvikt...@redhat.com>
Date: Wed, 26 Feb 2014 16:39:49 +0100
Subject: [PATCH] ipalib.plugins: Expose LDAPObjects' eligibility for
 permission --type in JSON metadata

https://fedorahosted.org/freeipa/ticket/4201
---
 ipalib/plugins/baseldap.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ipalib/plugins/baseldap.py b/ipalib/plugins/baseldap.py
index c2aad784df2b2bcd03f4ec0462e74cd6abce594c..c4951eb56c044cfa08b617d546d9b9332adc4cc9 100644
--- a/ipalib/plugins/baseldap.py
+++ b/ipalib/plugins/baseldap.py
@@ -631,6 +631,8 @@ def __json__(self):
         json_dict['aciattrs'] = attrlist
         attrlist.sort()
         json_dict['methods'] = [m for m in self.methods]
+        json_dict['can_have_permissions'] = bool(
+            self.permission_filter_objectclasses)
         return json_dict
 
 
-- 
1.8.5.3

_______________________________________________
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel

Reply via email to