I have a custom module that replaces the default RolesBasedAuthorizationService with almost identical code, except that, when my custom module is enabled, it will pull roles from a service instead of from the user. Enabling the service involves filling
out information in Settings and checking a box.
Since the roles are replaced when using my custom module (and the functionality is enabled), I want to hide the roles on the Edit User page. Since I can't just remove the Parts_Roles_UserRoles_Edit at all times that my feature is enabled (since the checkbox
also has to be checked), I want to make a wrapper that will conditionally hide the list. I've added the following to my module's placement.info:
<Place Parts_Roles_UserRoles_Edit="Content:10;Wrapper=Wrapper_HideIfCondition" />
I've also created MyCurrentTheme\Views\Wrapper.HideIfCondition.cshtml, which currently holds the following:
<div style="display: block">
However, the list is disappearing - it doesn't seem as if the file is being found. What am I missing?