changeset 10286 | 0f8c3ac88f1e |
parent 10272 | 3231fd2fa7a5 |
child 10294 | 277074659cad |
--- a/dataimport.py Wed Mar 25 07:57:38 2015 +0100 +++ b/dataimport.py Wed Mar 25 08:09:56 2015 +0100 @@ -855,6 +855,9 @@ schema = cnx.vreg.schema rschema = schema.rschema for rtype in self.META_RELATIONS: + # skip owned_by / created_by if user is the internal manager + if cnx.user.eid == -1 and rtype in ('owned_by', 'created_by'): + continue if rschema(rtype).final: self.etype_attrs.append(rtype) else: