Commit e40facdc authored by marc duez's avatar marc duez

migrator.py : create permission on sampe_set table on import

parent b888ef42
Pipeline #175184 passed with stages
in 11 minutes and 19 seconds
...@@ -202,6 +202,10 @@ class Importer(): ...@@ -202,6 +202,10 @@ class Importer():
name=PermissionEnum.access.value, name=PermissionEnum.access.value,
table_name=stype, table_name=stype,
record_id=nid) record_id=nid)
db.auth_permission.insert(group_id=self.groupid,
name=PermissionEnum.access.value,
table_name="sample_set",
record_id=ssid)
self.log.debug("associated set %d to group %d" % (nid, self.groupid)) self.log.debug("associated set %d to group %d" % (nid, self.groupid))
def importTable(self, table, values, ref_fields={}, map_val=False): def importTable(self, table, values, ref_fields={}, map_val=False):
......
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