mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-07 04:47:14 +00:00
Monotone-Parent: d61516dbee88e6bc6828689bf6efabde759a5a80
Monotone-Revision: cb2b5ac6d1deb889762cf2eadc58376d6ab9f534 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2008-05-02T23:11:21 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
1 parent
18f4470fed
commit
b88f44fff3
3 files changed
+109
-5
No files matched your search
@@ -32,9 +32,11 @@
|
||||
#import <GDLContentStore/NSURL+GCS.h>
|
||||
#import <GDLAccess/EOAdaptorChannel.h>
|
||||
|
||||
#import "NSObject+DAV.h"
|
||||
#import "SOGoGCSFolder.h"
|
||||
#import "SOGoPermissions.h"
|
||||
#import "SOGoUser.h"
|
||||
#import "SOGoWebDAVAclManager.h"
|
||||
|
||||
#import "SOGoParentFolder.h"
|
||||
|
||||
@@ -48,6 +50,48 @@ static SoSecurityManager *sm = nil;
|
||||
sm = [SoSecurityManager sharedSecurityManager];
|
||||
}
|
||||
|
||||
+ (SOGoWebDAVAclManager *) webdavAclManager
|
||||
{
|
||||
SOGoWebDAVAclManager *webdavAclManager = nil;
|
||||
|
||||
if (!webdavAclManager)
|
||||
{
|
||||
webdavAclManager = [SOGoWebDAVAclManager new];
|
||||
[webdavAclManager registerDAVPermission: davElement (@"read", @"DAV:")
|
||||
abstract: YES
|
||||
withEquivalent: nil
|
||||
asChildOf: davElement (@"all", @"DAV:")];
|
||||
[webdavAclManager registerDAVPermission: davElement (@"read-current-user-privilege-set", @"DAV:")
|
||||
abstract: NO
|
||||
withEquivalent: SoPerm_WebDAVAccess
|
||||
asChildOf: davElement (@"read", @"DAV:")];
|
||||
[webdavAclManager registerDAVPermission: davElement (@"write", @"DAV:")
|
||||
abstract: YES
|
||||
withEquivalent: nil
|
||||
asChildOf: davElement (@"all", @"DAV:")];
|
||||
[webdavAclManager registerDAVPermission: davElement (@"bind", @"DAV:")
|
||||
abstract: NO
|
||||
withEquivalent: SoPerm_AddFolders
|
||||
asChildOf: davElement (@"write", @"DAV:")];
|
||||
[webdavAclManager registerDAVPermission: davElement (@"unbind", @"DAV:")
|
||||
abstract: NO
|
||||
withEquivalent: SoPerm_DeleteObjects
|
||||
asChildOf: davElement (@"write", @"DAV:")];
|
||||
[webdavAclManager
|
||||
registerDAVPermission: davElement (@"write-properties", @"DAV:")
|
||||
abstract: YES
|
||||
withEquivalent: nil
|
||||
asChildOf: davElement (@"write", @"DAV:")];
|
||||
[webdavAclManager
|
||||
registerDAVPermission: davElement (@"write-content", @"DAV:")
|
||||
abstract: YES
|
||||
withEquivalent: nil
|
||||
asChildOf: davElement (@"write", @"DAV:")];
|
||||
}
|
||||
|
||||
return webdavAclManager;
|
||||
}
|
||||
|
||||
- (id) init
|
||||
{
|
||||
if ((self = [super init]))
|
||||
|
||||
Reference in new issue
Block a user