mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-18 13:13:31 +00:00
Filter sql source entries based on the user domain
When using dynamic domains with SQL sources (DomainFieldName), let WebUI and dav lookups return entries from current domain and other domains visible from the originating domain. Fixes #2269 SQLSource.m: _visibleDomainsQualifierFromDomain: returns a EOQualifier OR'ing all visible domains from specified domain (including specified domain) SQLSource.m: allEntryIDsVisibleFromDomain Replacement for allEntryIDs. Instead of returning all entries from the sql source, only return the entries visible from the specified domain. SoObjects/SOGo/SQLSource.m: allEntryIDs Changed to call allEntryIDsVisibleFromDomain with an empty domain. SQLSource.m fetchContactsMatching:inDomain: Use _visibleDomainsQualifierFromDomain to filter entries LDAPSource.m: allEntryIDsVisibleFromDomain Simply call allEntryIDs, discarding the domain. LDAP does need to do the extra domain filtering SOGoContactSourceFolder.m: toOneRelationshipKeys Call new method: allEntryIDsVisibleFromDomain
This commit is contained in:
@@ -200,7 +200,10 @@
|
||||
|
||||
- (NSArray *) toOneRelationshipKeys
|
||||
{
|
||||
return [source allEntryIDs];
|
||||
NSString *userDomain;
|
||||
|
||||
userDomain = [[context activeUser] domain];
|
||||
return [source allEntryIDsVisibleFromDomain: userDomain];
|
||||
}
|
||||
|
||||
- (NSException *) saveLDIFEntry: (SOGoContactLDIFEntry *) ldifEntry
|
||||
|
||||
Reference in New Issue
Block a user