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; }