• Resolved milkycode

    (@milkycode)


    If a user has not the role author or higher, he cannot upload an own image.
    Thats really bad, because you don’t want to have all users authors.

    Also subscriber should have a upload button. Is that possible?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author pepe

    (@pputzer)

    Hi @milkycode, actually Avatar Privacy does not check for the role per se, but whether the user is allowed to upload files according to the WordPress capabilities associated with the role (specifically using \current_user_can( 'upload_files' )).

    Now you can certainly give other roles the upload_files capability (although it’s probably not wise to do that with subscriber). Currently, other than that I don’t see a way to add this feature without editing the code (i.e. there are no filter hooks to override the capability check).

    I can see adding a filter hook (or a custom capability, I’d have to check how hard that is), but I can’t promise you a timeline on that feature.

    Thread Starter milkycode

    (@milkycode)

    OK, thank you.

    I checked the code for that, but found out, it is easier and better to use a plugin like “User Role Editor” and allow subscribers to upload images.

    In my case no user can register. So it is save for subscribers to upload.

    Plugin Author pepe

    (@pputzer)

    Ah, glad to hear that!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘No upload Button if user has a role below author’ is closed to new replies.