Assign files to a certain role

Home Forums Premium add-ons support Assign files to a certain role

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #658444

    Hello,
    when I upload a file I have to assign it to only one user, so that the person responsible doesn’t get confused. I would need to be able to assign the files only to the LABclient role of WP Customer Area, not to other user roles that are in my web, is it possible to filter only the WP Customer Area client users?
    Thanks.
    Jose

    #659766
    Thomas Lartaud
    Keymaster

    Hi,

    Do you know how filters work?
    We have a filter cuar/core/ownership/selectable-owners?owner-type=usr that you can use to filter users. it uses 3 args ($response, $search, $page).

    I hope that helps.

    #659984

    Hi Thomas, I don’t quite understand, I see that filter is in the file post-owner-user-owner-type.class.php
    Is that file the one I should modify so that it only filters users with the LABclient role ?

    Thanks.
    Jose

    #660027
    Thomas Lartaud
    Keymaster

    Hi,

    Sorry, I think I’ve been confused by your question.

    I would need to be able to assign the files only to the LABclient role of WP Customer Area, not to other user roles that are in my web,

    Do you want your file to be assigned to all users from the role LABclient at once, or do you want your users to be able to select only the users that have the LABclient role?

    Regards.

    #660032

    Hi,
    I want my users to be able to select only the users that have the LABclient role.
    Thanks.
    Jose

    #660033
    Thomas Lartaud
    Keymaster

    So you simply need the owner restrictions add-on.
    This will allow you to do what you need.

    Activate it, then go in settings -> WP Customer Area -> private file and scroll down to the bottom. Select the subscribers’ tab, and for users select any user with the role LABclient.

    Regards.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.