From 7073bbd3ce1f8ee7ff2db9527f90cc6818391e52 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Fri, 1 Jun 2007 20:56:42 +0000 Subject: [PATCH] Monotone-Parent: 93abc80affc5d745f61c233177d8bc8592b79465 Monotone-Revision: 927e91d177653510e182a2c05cf9fca19d5110f6 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-06-01T20:56:42 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 4 ++++ UI/Common/UIxFolderActions.m | 12 +----------- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5eea8c55a..99fdca0ba 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2007-06-01 Wolfgang Sourdeau + * 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 diff --git a/UI/Common/UIxFolderActions.m b/UI/Common/UIxFolderActions.m index 94edaea4a..ca14b9d5e 100644 --- a/UI/Common/UIxFolderActions.m +++ b/UI/Common/UIxFolderActions.m @@ -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; }