Fix object_name comparison to ir.attachment

issue3130
This commit is contained in:
Cédric Krier committed 2013-04-11 14:48:12 +02:00
1 parent 68d7948b10
commit bbd792937c
1 file changed
+1 -1
+1 -1
View File
@@ -541,7 +541,7 @@ class Collection(ModelSQL, ModelView):
object_name, object_id = cls._uri2object(get_uriparentpath(uri),
cache=cache)
if not object_name \
or object_name in ('ir.attachment') \
or object_name == 'ir.attachment' \
or not object_id:
raise DAV_Forbidden
pool = Pool()