Forum Replies Created

Viewing 15 posts - 1,471 through 1,485 (of 2,526 total)
  • Author
    Posts
  • Vladimir
    Keymaster

    _MACOSX folder contains hidden files with the same names as at the original package, but with the content made probably by antivirus software with this string inside: “com.apple.quarantine”. That is all PHP files was placed to a quarantine for some reason.

    Vladimir
    Keymaster

    .zip file you provided is not exactly a file, which you can get from a download page after login.
    WordPress plugin installation .zip file should not contain any other directories except plugin parent directory – user-role-editor-pro in our case. Your file contains _MACOSX folder. May be it’s a reason of security warning?

    Did you try to upload to a site the exactly that .zip file, which you got from a role-editor.com download page?

    Vladimir
    Keymaster

    Hi,

    Just compared a .zip I got from a Web with my own local copy. It’s identical and so – clear.
    I suppose some kind of a “false positive’ from your hosting antivirus software.

    Share your copy of user-role-editor-pro.zip with me via DropBox or similar service. I will compare it with mine own. Just in order to exclude that it caught a virus on path from you to your server.

    Vladimir
    Keymaster

    I added the information about this filter to the end of “Other roles access” add-on documentation page.

    Vladimir
    Keymaster

    Yes, it’s the same solution. I just changed a name of a custom function which returns FALSE in order to it would correspond to the what it really does. There is no bug in a code I offered above. I tested it before to send to you. Both version of code work. You can use anyone. Or even this 3rd version:

    
    add_filter('ure_not_block_other_roles_for_local_admin','my_not_block_other_roles_for_local_admin');
    
    function my_not_block_other_roles_for_local_admin($flag) {
    
      return false;
    }
    

    This custom filter included into Pro version code and will be there. The only thing which I can make for this point in future – add the checkbox to the URE Pro settings. But anyway its value will be sent to an existing filter 'ure_not_block_other_roles_for_local_admin' instead of default TRUE, which is sent currently.

    I plan in future to add custom filters for all options of URE Settings in order URE Pro user can configure all URE functionality seting up a .php file as a must use plugin.

    Vladimir
    Keymaster

    If you wish to change a default behavior of User Role Editor independently from a theme you can setup this code as a Must Use plugin.
    Create a .php file, start it from < sign on the 1st row. Copy/paste a code there. Place that file to wp-content/mu-plugins folder. That’s it.

    Vladimir
    Keymaster

    Thanks for all details which helped to reproduce an issue.
    Sorry for delay with a solution. I re-tested a similar configuration, got the same result and reviewed my code after that. ‘Other roles access’ add-on restrictions are not applied for single site admins (administrator) role under multisite by default. But it’s possible to change this with a custom filter:

    
    add_filter('ure_not_block_other_roles_for_local_admin','ure_not_block_other_roles_for_local_admin');
    
    function ure_not_block_other_roles_for_local_admin($flag) {
    
      return false;
    }
    
    Vladimir
    Keymaster

    Thank you for details. One more thing to check, just to be sure:

    Login as superadmin, go to “Network Admin -> Users” and check if your test user with ‘administrator’ role does not have ‘Superadmin’ privilege granted there.
    It could be a reason why ‘Other roles access’ does not work for ‘Site admin (administrator)’ role.

    Vladimir
    Keymaster

    Can you show the screeshots what critical role is available to users with ‘administrator’ role, but should not be?
    What do you name ‘superadmin’ role?
    Did you allow to single site admin access to the network admin like manage_network_options, manage_network_users?

    Vladimir
    Keymaster

    WordPress built-in ‘administrator’ role is hidden from any drop-down list for single site administrators (without superadmin privilege) by default.

    If you wish to exclude another role(s) from access of user with ‘list_users’, ‘edit_users’ capabilities you can use “Block other roles access” add-on.

    Vladimir
    Keymaster

    Hi,

    Does such user see an item uploaded by other user in Media Library but just do not have ‘edit’ link? Does such user have ‘edit_others_posts’ capability?

    in reply to: Upgrading to Pro version #3987
    Vladimir
    Keymaster

    I confirm that all the user roles that you created will remain and show up in the pro version with the permissions still intact. You can create then new roles as usual with Pro version. Ads will be removed. When you activate add-on, like “Admin menu access” at “Settings->User Role Editor->Additonal Modules” tab you will see at toolbar a new button (e.g. “Admin Menu”) which belongs to that add-on.

    in reply to: Upgrading to Pro version #3985
    Vladimir
    Keymaster

    Yes – in the both questions.

    When I write about URE’s settings I mean only options available at the “Settings->User Role Editor” page.

    Changes made to the user roles, or users permissions are not revertible. Any updates to the roles or users permissions you made with URE are permanent and do not depend from URE plugin activation/deactivation, deletion.

    in reply to: Upgrading to Pro version #3983
    Vladimir
    Keymaster

    In case you have a free version of User Role Editor installed:
    Pro version includes its own copy of a free version (or the core of a User Role Editor). So you should deactivate free version and can remove it before installing of a Pro version.
    The only thing that you should remember is that both versions (free and Pro) use the same place to store their settings data.
    So if you delete free version via WordPress Plugins Delete link, plugin will delete automatically its settings data.
    You will have to configure User Role Editor Pro Settings again after that.
    Right decision in this case is to delete free version folder (user-role-editor) via FTP, not via WordPress.

    in reply to: Notify user when role is assigned #3981
    Vladimir
    Keymaster

    Hi Shweta,

    This feature is not supported, but it’s interesting/useful enough to realize in a future.

    When someone assign new role to a user via WordPress UI: add new user or edit user profile pages, WP_User::add_role() and WP_User::set_role() methods are used. These methods fire hooks:
    add_user_role;
    set_user_role.

    User Role Editor does not fire any custom action when assigns to a user new roles. It uses the same WP_User::add_role() though, so it’s possible to use ‘add_user_role’ hook also.

Viewing 15 posts - 1,471 through 1,485 (of 2,526 total)