Title: Custom Roles Support
Last modified: August 21, 2016

---

# Custom Roles Support

 *  [ericjuden](https://wordpress.org/support/users/ericjuden/)
 * (@ericjuden)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/custom-roles-support/)
 * 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://wordpress.org/plugins/nextgen-public-uploader/](https://wordpress.org/plugins/nextgen-public-uploader/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [12 years, 4 months ago](https://wordpress.org/support/topic/custom-roles-support/#post-4720652)
 * Will look into and consider.

Viewing 1 replies (of 1 total)

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

 * ![](https://s.w.org/plugins/geopattern-icon/nextgen-public-uploader_544d49.svg)
 * [NextGEN Public Uploader](https://wordpress.org/plugins/nextgen-public-uploader/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nextgen-public-uploader/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nextgen-public-uploader/)
 * [Active Topics](https://wordpress.org/support/plugin/nextgen-public-uploader/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nextgen-public-uploader/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nextgen-public-uploader/reviews/)

## Tags

 * [custom roles](https://wordpress.org/support/topic-tag/custom-roles/)

 * 1 reply
 * 2 participants
 * Last reply from: [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * Last activity: [12 years, 4 months ago](https://wordpress.org/support/topic/custom-roles-support/#post-4720652)
 * Status: not resolved