mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-23 05:49:31 +00:00
Monotone-Parent: 9df3ab1d4e8ca89e2cd5da61c1d1c9b6d4f6ff8e
Monotone-Revision: e81a19428dc35c851d16d525d7d41f645b87aa93 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2011-08-08T18:54:02 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -273,6 +273,22 @@ _prepareContextClass (Class contextClass,
|
||||
[MAPIApp setMAPIStoreContext: nil];
|
||||
}
|
||||
|
||||
- (SOGoUser *) activeUser
|
||||
{
|
||||
SOGoUser *activeUser;
|
||||
NSString *userName;
|
||||
|
||||
if (connInfo && connInfo->username)
|
||||
{
|
||||
userName = [NSString stringWithUTF8String: connInfo->username];
|
||||
activeUser = [SOGoUser userWithLogin: userName];
|
||||
}
|
||||
else
|
||||
activeUser = nil;
|
||||
|
||||
return activeUser;
|
||||
}
|
||||
|
||||
// - (void) logRestriction: (struct mapi_SRestriction *) res
|
||||
// withState: (MAPIRestrictionState) state
|
||||
// {
|
||||
|
||||
Reference in New Issue
Block a user