Replace :max_access_level_membership with :user_highest_role
With the introduction of the database table user_highest_roles
in !26987 (merged) the highest role of a User is easier to access. By using the user_highest_role
association there will be only one entry for the user instead of multiple as with the current association max_access_level_membership
that uses the members
table and therefore multiple entries to determine the highest role.