Hello,
I have many users that there roles define what folder should have access to. So I modified the code in AssetManager.php at line 39 and added
$role = $current_user->roles[0];
switch ($role) {
case 'cnsbt':
$role = 'CNSBT/';
break;
case 'renv':
$role = 'RENV/';
break;
case 'uatm':
$role = 'UATM/';
break;
case 'cnscbt':
$role = 'CNSCBT/';
break;
case 'administrator' :
$role='';
break;
default :
$role=$current_user->roles[0].'/';
break;
}
$root = current_user_can(WPDM_ADMIN_CAP) ? rtrim(get_option('_wpdm_file_browser_root'), '/') . '/' .$role : UPLOAD_DIR . $role . '/';
it will be awesome if I have this option in admin interface. Where I attribute every role of user there responsible folder, and not having to modify every time there’s an update.
Thank you very much.