Monotone-Parent: 93abc80affc5d745f61c233177d8bc8592b79465

Monotone-Revision: 927e91d177653510e182a2c05cf9fca19d5110f6

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-06-01T20:56:42
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2007-06-01 20:56:42 +00:00
parent 1510a2ec92
commit 7073bbd3ce
2 changed files with 5 additions and 11 deletions

View File

@@ -1,5 +1,9 @@
2007-06-01 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* UI/Common/UIxFolderActions.m ([-canAccessContentAction]):
changed the method paradigm to only return HTTP code 204. Not test
is done whatsoever since the security manager does it for us.
* UI/Contacts/UIxContactsListView.m ([-canAccessContentAction]):
removed method because the same exists in UIxFolderActions.m

View File

@@ -163,19 +163,9 @@
- (WOResponse *) canAccessContentAction
{
WOResponse *response;
SoSecurityManager *securityManager;
BOOL result;
securityManager = [SoSecurityManager sharedSecurityManager];
result = (![securityManager validatePermission: SoPerm_AccessContentsInformation
onObject: [self clientObject]
inContext: context]);
response = [context response];
[response setStatus: 200];
[response setHeader: @"text/plain; charset=\"ascii\""
forKey: @"content-type"];
[response appendContentString: (result) ? @"1" : @"0"];
[response setStatus: 204];
return response;
}