The solution in the other thread works great for the editor view however it is still possible for users to select and delete members in the list view. This is my current struggle! I somehow need to hook into the config for the view and disable the "allowBulkOperations" setting for users not in the required user group.
If anyone can offer any insight or alternative solution I'd appreciate some pointers because as usual I'm lost in the angular. The previous method of using interceptors doesn't seem to be an option as what I need seems to be buried within the umb-editor-sub-header__section directive but I'm not sure how that is populated. If I remove the entire directive it prevents users from searching.
My case is simpler as member bulk deletion is usually not a good action, so I just unchecked "Allow Bulk Delete" in Admin Panel/Developer/Data Type/List View - Members.
For your case, I suggest overriding Umbraco.Web/Editors/MemberController.cs --> GetListNodeDisplay(), and just replace the js resource API path with your version.
If you dig into the HTTP requests and GitHub code, you'll find that you need to modify the Tab.Properties in the returned model MemberListDisplay
Look into the json response below of the GetListNodeDisplay(), and you will see two sets of allowBulkDelete in bulkActionPermissions. They are your targets to override.
Disable Bulk Operations in Members List View
My question is in relation to another problem I needed to tackle and which is covered in the thread Disable Save Button in Members Area for Users that are not in a given UserGroup
The solution in the other thread works great for the editor view however it is still possible for users to select and delete members in the list view. This is my current struggle! I somehow need to hook into the config for the view and disable the "allowBulkOperations" setting for users not in the required user group.
If anyone can offer any insight or alternative solution I'd appreciate some pointers because as usual I'm lost in the angular. The previous method of using interceptors doesn't seem to be an option as what I need seems to be buried within the
umb-editor-sub-header__section
directive but I'm not sure how that is populated. If I remove the entire directive it prevents users from searching.Thanks in advance.
My case is simpler as member bulk deletion is usually not a good action, so I just unchecked "Allow Bulk Delete" in Admin Panel/Developer/Data Type/List View - Members.
For your case, I suggest overriding
Umbraco.Web/Editors/MemberController.cs --> GetListNodeDisplay()
, and just replace the js resource API path with your version.If you dig into the HTTP requests and GitHub code, you'll find that you need to modify the
Tab.Properties
in the returned modelMemberListDisplay
Look into the json response below of the GetListNodeDisplay(), and you will see two sets of
allowBulkDelete
inbulkActionPermissions
. They are your targets to override.is working on a reply...