WordPress.org

Ready to get started?Download WordPress

Forums

Simple Fields
[resolved] Using Role Scoper - File upload blocked! no permissions (6 posts)

  1. Aaron
    Member
    Posted 3 years ago #

    While using Simple Fields with Role Scoper I cannot use the file uploader on a user that is not an admin. I am getting the "you do not have permissions" error. However, when using the normal image uploader I am able to upload an image to the content area.

    After much research, I have traced this back to the user not being able to "Activate Plugins". When we use capabilities manager to allow them to "active" plugins it works but then the user can add/edit/delete plugins AND all custom post types using simple fields are available to them as well making the whole point of the plugin null and void.

    I am not sure what side the give & take should be on this issue. Whether it is Role Scoper's problem or Simple Fields, but it seems like it is something that Simple Fields could fix easier.

    Please help as soon as possible.

    Thanks!

  2. lhSquared
    Member
    Posted 3 years ago #

    I am also seeing this issue. The strange thing is that users that are receiving the error message in the Simple Fields file uploader can use the file uploader to upload images to the post content.

    I have found that giving the users the ability to activate plugins does fix this issue, but opening up this functionality to users that are being restricted seems to defeat the purpose of Role Scoper.

    Maybe if Simple Fields opened up the ability for any access level to use the file uploader this issue would be fixed.

    Thank you for your help!

  3. ooomes
    Member
    Posted 3 years ago #

    Am experiencing the same issue.

    Will be a great help if fixed.

    Thanks!

  4. kevinB
    Member
    Posted 3 years ago #

    You can eliminate the conflict by disabling Role Scoper filtering for file uploads by putting this in wp-config.php, above the "stop editing" line:


    if ( strpos( $_SERVER['SCRIPT_NAME'], '/wp-admin/media-upload.php' ) || strpos( $_SERVER['SCRIPT_NAME'], '/wp-admin/async-upload.php' ) )
    define( 'DISABLE_QUERYFILTERS_RS', true );

    This will also prevent users from uploading files on the basis of RS role assignments, but I'm not ready to donate any more time to the investigation right now.

  5. Aaron
    Member
    Posted 3 years ago #

    Thanks Kevin! HUGE HELP! Fortunately, we don't need to block any file uploading so this works perfectly for us.

    You are an champ!

  6. Aaron
    Member
    Posted 3 years ago #

    Sidenote: We actually had to remove '/wp-admin/' from the two file calls to get it to work.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic