When JS extension calls gohan_model_update in post_state_update_in_transaction, panic occurs with following message.
11:10:19.630 gohan.server ERROR Panic interface conversion: interface {} is nil, not *schema.Policy
This is because context["policy"] is not available when gohan_model_update calls UpdateResourceInTransaction. The possible solution is that gohanmodel* fills context["policy"] field with loadPolicy if this is not available. I can take care of it if this solution looks OK.
When JS extension calls gohan_model_update in post_state_update_in_transaction, panic occurs with following message.
11:10:19.630 gohan.server ERROR Panic interface conversion: interface {} is nil, not *schema.Policy
This is because context["policy"] is not available when gohan_model_update calls UpdateResourceInTransaction. The possible solution is that gohanmodel* fills context["policy"] field with loadPolicy if this is not available. I can take care of it if this solution looks OK.