mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-10 17:31:23 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user