Leverage Census Admin Panel menu visibility with CanCan Abilities
xredo opened this issue · comments
Xavier Redó commented
#Description
Currently we are showing a info screen requesting a System Admin to enable the authorization if it is not included in the organization.
We can use Abilities to control this, and then, configure the menu item to appear only if this ability is satisfied.
See https://github.com/decidim/decidim/blob/e3cf2113f89b9987073263c2fe4ba3aa6351d387/decidim-assemblies/lib/decidim/assemblies/admin_engine.rb for an example of a conditional menu item.