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:
Wolfgang Sourdeau
2011-08-08 18:54:02 +00:00
parent f7dc6f2ee3
commit 580e0027f9
3 changed files with 21 additions and 0 deletions

View File

@@ -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
// {