mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-05 05:18:51 +00:00
fix(ui): Change active user name on top left with primary identity
This commit is contained in:
@@ -497,7 +497,7 @@
|
||||
return [[sd authenticationType] isEqualToString: @"cas"];
|
||||
}
|
||||
|
||||
- (BOOL) usesSAML2Authentication
|
||||
- (BOOL) usesSAML2Authenticationx
|
||||
{
|
||||
SOGoSystemDefaults *sd;
|
||||
|
||||
@@ -511,7 +511,11 @@
|
||||
NSString *v;
|
||||
|
||||
/* The "identification" term is used in the human sense here. */
|
||||
v = [[context activeUser] cn];
|
||||
if ([[context activeUser] primaryIdentity] && [[[context activeUser] primaryIdentity] objectForKey:@"fullName"]) {
|
||||
v = [[[context activeUser] primaryIdentity] objectForKey:@"fullName"];
|
||||
} else {
|
||||
v = [[context activeUser] cn];
|
||||
}
|
||||
|
||||
return (v ? v : @"");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user