LPS-42221 The Actions menu should be shown or not based on actual permissions. In this case, both actions should be shown only if the user has the Assign Members permission
LPS-42221 Don't show the option to remove membership for protected users