Support » Plugin: User Role Editor » Clone of build-in role differs differs from original role

  • Resolved luckyfella73



    I noticed that a custom role cloned from a build-in wordpress role differs in some way.

    We have a wordpress installation where we use the WP Real Media Library and a plugin called Photography Management. If we edit a project (plugins custom posttype) as a build-in wordpress editor the thumbnails are displayed. If we use a role cloned from build-in wordpress editor the thumbs are not displayed correctly (only greyish like you have when images are not found or the permission doesn’t fit). Even cloning the build-in administrator role is not working (images related to the plugins pages are not displayed).

    Maybe good to know: the Photography Management plugin creates a new folder under wp-content/uploads/ where the images are saved uploaded by the plugin.

    Do you have any idea what the issue could be?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Vladimir Garagulia



    It may be not related to the list of capabilities included to a role. Check if some of the mentioned plugins has its own role and/or permissions manager or section in the settings. You need to add permissions for custom role in such section in this case.

    Hi Vladimir,
    thank you for responding. In the meantime I found out that the plugin Photography Management didn’t allow custom roles to handle uploads sufficiently. In the meantime the plugin author added that feature after I did a request – so in case other users need to allow custom roles/ or build-in editor for Photography Management plugin:

    // allow build-in editor:
    // define in wp-config.php
    if (!defined('PHMM_ALLOW_EDITORS')) {
    	define('PHMM_ALLOW_EDITORS', true);
    // call filter to allow custom roles (example):
    add_filter('codeneric/phmm/user_can_administer', 'codeneric__phmm_user_can_administer' );
    function codeneric__phmm_user_can_administer() {
    	$user = wp_get_current_user();
    	if ( in_array( 'your_custome_role_slugname', (array) $user->roles ) ) {
    		// return TRUE to allow
    		return true;

    Thanks and kind regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Clone of build-in role differs differs from original role’ is closed to new replies.