Commit a9a04d42 authored by Matija Obreza's avatar Matija Obreza

ACL: Use administrator as owner of inventory maintenance policy if user missing

parent 9031a15d
......@@ -180,6 +180,8 @@ public class ApplicationStartup implements InitializingBean {
customAclService.createOrUpdatePermissions(inventoryMaintPolicy, user);
} else {
LOG.warn("Inventory maintenance policy {} owner {} of has no SysUser", inventoryMaintPolicy.getMaintenanceName(), inventoryMaintPolicy.getOwnedBy());
// Use admin as owner
customAclService.createOrUpdatePermissions(inventoryMaintPolicy);
}
});
return true;
......
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