Is there a way to access the forest_user/current_user inside smart field definition method?

rails (
forest_liana (7.7.3)


Is it possible to access the current forest user’s tags inside a smart field method definition?

  field :test_tags, type: 'String' do
    # Is it possible to get the current user's tags in here?

In controller methods we have access to ‘forest_user’, and in actions ‘context[:user]’, etc.


hello @muz

Unfortunately it is not possible to access the forest_user in a smart field.

However I pushed it to product board as a feature suggestion.

1 Like

Thanks @matthv, I appreciate all your help!

1 Like