Fix object_name comparison to ir.attachment
issue3130
This commit is contained in:
1 parent
68d7948b10
commit
bbd792937c
1 file changed
+1
-1
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user