mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-07 12:57:14 +00:00
(fix) honor IMAPLoginFieldName also when setting IMAP ACLs
This commit is contained in:
1 parent
b68c9bd302
commit
4df69587a2
2 files changed
+11
-5
No files matched your search
@@ -15,6 +15,7 @@ Bug fixes
|
||||
- [web] properly handle Windows-1256 charaset (#4781)
|
||||
- [web] fixed saving value of receipt action for main IMAP account
|
||||
- [web] fixed search results in Calendar module when targeting all events
|
||||
- [core] honor IMAPLoginFieldName also when setting IMAP ACLs
|
||||
|
||||
4.0.8 (2019-07-19)
|
||||
------------------
|
||||
|
||||
@@ -60,6 +60,7 @@
|
||||
#import <SOGo/SOGoSystemDefaults.h>
|
||||
#import <SOGo/SOGoUser.h>
|
||||
#import <SOGo/SOGoUserFolder.h>
|
||||
#import <SOGo/SOGoUserManager.h>
|
||||
#import <SOGo/SOGoUserSettings.h>
|
||||
#import <SOGo/WORequest+SOGo.h>
|
||||
#import <SOGo/WOResponse+SOGo.h>
|
||||
@@ -1423,15 +1424,19 @@ _compareFetchResultsByMODSEQ (id entry1, id entry2, void *data)
|
||||
|
||||
- (NSString *) _sogoACLUIDToIMAPUID: (NSString *) uid
|
||||
{
|
||||
SOGoUser *user;
|
||||
|
||||
user = [SOGoUser userWithLogin: uid];
|
||||
|
||||
if ([uid hasPrefix: @"@"])
|
||||
return [[[[context activeUser] domainDefaults] imapAclGroupIdPrefix]
|
||||
stringByAppendingString: [uid substringFromIndex: 1]];
|
||||
else if ([[[context activeUser] domainDefaults] forceExternalLoginWithEmail])
|
||||
{
|
||||
return [[[SOGoUser userWithLogin: uid] primaryIdentity] objectForKey: @"email"];
|
||||
}
|
||||
else
|
||||
return uid;
|
||||
return [[user primaryIdentity] objectForKey: @"email"];
|
||||
|
||||
return [[SOGoUserManager sharedUserManager]
|
||||
getExternalLoginForUID: [user loginInDomain]
|
||||
inDomain: [user domain]];
|
||||
}
|
||||
|
||||
- (void) _removeIMAPExtUsernames
|
||||
|
||||
Reference in new issue
Block a user