Branch 'kolab/integration/4.13.0' - incidenceeditor-ng/resourcemodel.cpp

Sandro Knauß knauss at kolabsys.com
Tue Aug 12 19:08:59 CEST 2014


 incidenceeditor-ng/resourcemodel.cpp |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit c50b7844da445a0ef1ab68d6f6bd8e76c3cc847c
Author: Sandro Knauß <knauss at kolabsys.com>
Date:   Tue Aug 12 19:04:23 2014 +0200

    only show resource groups in resourcemanagement

diff --git a/incidenceeditor-ng/resourcemodel.cpp b/incidenceeditor-ng/resourcemodel.cpp
index d4f8346..0bd9566 100644
--- a/incidenceeditor-ng/resourcemodel.cpp
+++ b/incidenceeditor-ng/resourcemodel.cpp
@@ -36,8 +36,8 @@ ResourceModel::ResourceModel(const QStringList &headers,
     this->headers = headers;
     rootItem = ResourceItem::Ptr(new ResourceItem(KLDAP::LdapDN(), headers, KLDAP::LdapClient(0)));
 
-    ldapSearchCollections.setFilter(QString::fromLatin1("&(objectClass=kolabGroupOfUniqueNames)(mail=*)"
-                                    "(|(cn=%1)(givenName=%1)(sn=%1))"));
+    ldapSearchCollections.setFilter(QString::fromLatin1("&(ou=Resources,*)(objectClass=kolabGroupOfUniqueNames)(objectclass=groupofurls)(!(objectclass=nstombstone))(mail=*)"
+                                    "(cn=%1)"));
     ldapSearch.setFilter(QString::fromLatin1("&(objectClass=kolabSharedFolder)(kolabFolderType=event)(mail=*)"
                          "(|(cn=%1)(givenName=%1)(sn=%1))"));
 




More information about the commits mailing list