Commit e73ad8a3 authored by 's avatar

Removed some unneeded permission declarations from WebDAV classes.

parent 44e8f13a
...@@ -85,7 +85,7 @@ ...@@ -85,7 +85,7 @@
"""WebDAV support - collection objects.""" """WebDAV support - collection objects."""
__version__='$Revision: 1.14 $'[11:-2] __version__='$Revision: 1.15 $'[11:-2]
import sys, os, string, Globals import sys, os, string, Globals
from common import urlfix, rfc1123_date from common import urlfix, rfc1123_date
...@@ -102,11 +102,6 @@ class Collection(Resource): ...@@ -102,11 +102,6 @@ class Collection(Resource):
__dav_collection__=1 __dav_collection__=1
__ac_permissions__=(
('Add Documents, Images, and Files', ('PUT',)),
('Delete objects', ('DELETE',)),
)
def dav__init(self, request, response): def dav__init(self, request, response):
# We are allowed to accept a url w/o a trailing slash # We are allowed to accept a url w/o a trailing slash
# for a collection, but are supposed to provide a # for a collection, but are supposed to provide a
......
...@@ -85,7 +85,7 @@ ...@@ -85,7 +85,7 @@
"""WebDAV support - null resource objects.""" """WebDAV support - null resource objects."""
__version__='$Revision: 1.21 $'[11:-2] __version__='$Revision: 1.22 $'[11:-2]
import sys, os, string, mimetypes, Globals import sys, os, string, mimetypes, Globals
import Acquisition, OFS.content_types import Acquisition, OFS.content_types
...@@ -103,11 +103,8 @@ class NullResource(Persistent, Acquisition.Implicit, Resource): ...@@ -103,11 +103,8 @@ class NullResource(Persistent, Acquisition.Implicit, Resource):
__ac_permissions__=( __ac_permissions__=(
('View', ('HEAD',)), ('View', ('HEAD',)),
('Access contents information', ('PROPFIND',)),
('Manage properties', ('PROPPATCH',)),
('Add Documents, Images, and Files', ('PUT',)), ('Add Documents, Images, and Files', ('PUT',)),
('Add Folders', ('MKCOL',)), ('Add Folders', ('MKCOL',)),
('Delete objects', ('DELETE',)),
) )
def __init__(self, parent, name, request=None): def __init__(self, parent, name, request=None):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment