• I installed this plugin today and ran into an issue while using custom roles I had created. I have it set in the options to allow Subscribers be able to upload files, but my custom role that has more permissions than a subscriber is unable to upload files because they don’t have a user level. I would recommend changing the settings page to check if the user can perform certain actions (upload_files, read, etc).

    The line in question is line 108 of nextgen-public-uploader/inc/npu-upload.php:

    if ( current_user_can( 'level_' . $npu_selected_user_role ) || get_option( 'npu_user_role_select' ) == 99 ) {

    change to

    if ( current_user_can( $npu_selected_user_capability ) || get_option( 'npu_user_role_select' ) == 99 ) {

    Thanks,

    Eric

    https://ww.wp.xz.cn/plugins/nextgen-public-uploader/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Custom Roles Support’ is closed to new replies.