Monotone-Parent: af42c1c664398cffa5afdc484683fb326e291b6e

Monotone-Revision: 38a512204cb4c49fbc144379e8587aaea3394a3a

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2008-08-22T12:08:18
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Francis Lachapelle
2008-08-22 12:08:18 +00:00
parent 559f29f702
commit 0b492ef0ad
3 changed files with 20 additions and 7 deletions
+15 -3
View File
@@ -664,7 +664,7 @@
[address appendFormat: @"%@ <%@>", cn, email];
else
[address appendString: email];
url = [NSString stringWithFormat: @"%@/Mail/compose?mailto=%@",
[self userFolderPath], address];
}
@@ -680,13 +680,25 @@
NSString *objectId, *method, *uri;
id <WOActionResults> result;
SOGoContactGCSFolder *co;
SoSecurityManager *sm;
co = [self clientObject];
objectId = [co globallyUniqueObjectId];
if ([objectId length] > 0)
{
method = [NSString stringWithFormat:@"%@/%@.vcf/editAsContact",
[co soURL], objectId];
sm = [SoSecurityManager sharedSecurityManager];
if (![sm validatePermission: SoPerm_AddDocumentsImagesAndFiles
onObject: co
inContext: context])
{
method = [NSString stringWithFormat: @"%@/%@.vcf/editAsContact",
[co soURL], objectId];
}
else
{
method = [NSString stringWithFormat: @"%@/Contacts/personal/%@.vcf/editAsContact",
[self userFolderPath], objectId];
}
uri = [self completeHrefForMethod: method];
result = [self redirectToLocation: uri];
}