• Hello,

    There is an issue regarding file permission, if you upload a file/featured image etc to a post and check a user permission for this specific file, the permission is applied to the whole page, so instead of users that don’t have the permission not having access to this file, they are not able to access the entire page.

    The reason for this is that the id of the checkbox in the page and in the file upload modal have the same id.

    the fix is to change
    id="<?php echo $groupsFormName; ?>-<?php echo $userGroup->getId(); ?>" <?php echo $attributes; ?>
    to
    id="media<?php echo $groupsFormName; ?>-<?php echo $userGroup->getId(); ?>" <?php echo $attributes; ?>
    and
    <label for="<?php echo $groupsFormName; ?>-<?php echo $userGroup->getId(); ?>" class="selectit"
    to
    <label for="media<?php echo $groupsFormName; ?>-<?php echo $userGroup->getId(); ?>" class="selectit"
    in
    /wp-content/plugins/user-access-manager/src/View/MediaAjaxEditForm.php

    if you could please a push a bug fix update for this it would be really helpful, thanks in advance.

  • The topic ‘User permission bug’ is closed to new replies.