Open nagyt234 opened 11 years ago
It seems that this could solve my use case as well. I figure that I already have access to user, and should thusly be able to access a boolean on said user.
My use case is checking a boolean on the actual user: if_true user.configurable_setting_boolean?
or if_true user.company.configiruable_setting_boolean?
If this can be done, It'd make the ability for me to create a new user through rails much easier.
It would be a nice feature to have if_true in a #has_permission_on block, to check conditions of dynamic parameters that have to be met for the user to meet the privileges in this block. This would be especially useful on new, where no attributes are known yet.
E.g: