Discussion on Use-your-Drive | Google Drive plugin for WordPress

_DeLeeuw_

_DeLeeuw_ supports this item

Supported

621 comments found.

Hi, is it possible to hide folders based on user role? For example, if I have 3 folders named Group1, Group2, and Group3 and I have user roles named Members and Officers, is there a way to, for example, show Group1 and Group2 folders to Members but not Officers and show Group2 and Group3 folders to Officers but not Members. I see the option to hide folders and that works but it doesn’t tie into user roles. One thing I tried was creating a shortcode that would return the appropriate folders to exclude for the exclude parameter but it looks like it doesn’t support nested shortcodes. Is there any other way? I realize I could probably do this with multiple instances but I’d prefer to do it with one if possible. Also, assuming this is possible, is there a way to have different permissions (upload, download, edit, etc.) for each of the folders by role as well?

It is not possible to achieve this with just one shortcode. So the easiest solution would indeed be to use multiple Use-your-Drive shortcodes: one for the Members and one for the Officers. It is not possible to set different permissions for different folders within one shortcode, so perhaps you will need even more shortcodes if you want the folder Group 1 to have different permissions than Group 2.

by
by
by
by
by
by