• Resolved Lion73

    (@lion73)


    If User “Can edit these user roles only” option is enabled in role, in member directory (grid) “Edit Profile” button MUST BE visible only for users with role selected in “Can edit these user roles only” option.
    Instead the button is visible on all member files, regardless of the role!

    This condition in members-grid.php

    if ( user.can_edit )

    It does not include specific roles!

    
    <# if ( user.can_edit ) { #>
     <div class="um-members-edit-btn">
       <a href="{{{user.edit_profile_url}}}" class="um-edit-profile-btn um-button um-alt">
    <?php _e( 'Edit profile','ultimate-member' ) ?>
       </a>
     </div>
    <# } #>
    

    What is the solution?
    Thanks in advance

Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘User Can edit these user roles only’ is closed to new replies.