Access A and B, but upload only to B?
| Project: | Web File Manager |
| Version: | 6.x-2.10-rc4 |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | by design |
Jump to:
Is it possible to setup webfm in such a way that one user can access (view/download) two directories (files/webfm/A and files/webfm/B) but should have upload privilege only on one of them (e.g. files/webfm/B/)?
I tried to achieve that, but didn't seem to work.
1)I created two roles - A and B:
Role A has "access webfm" permission with "Role Root Directory" set to A
Role B besides "access webfm" has "webfm upload" permissions and "Role Root Directory" is set to B
2) I added my user to both roles - A and B.
I would expect that user should be able to view/download content from A and B, but upload only to one of those directories - B Appears that this is not the case. When I tested user was able to upload to both directories - A and B.
Can someone tell if this is at all possible, and if yes, what should be setup to achieve that.
This is a true life saver module. After fileshare module was discontinued, this became the only one that not only replaces it but gives many more useful features. The fact that you can control file access even with Drupal file system set to "public" is just amazing. Thanks for the wonderful module.

#1
Upload permission is granted per role. Users can be have multiple roles so it is possible for a single user to have upload permission of one role root and not to the other. Users with multiple webfm roles will see multiple trees on the left hand side. The role root directories can also be nested. Too many scenarios to describe but hopefully you get the idea.
#2
Unfortunately it doesn't work the way you say it should. Yes, if user has more then one role he can see multiple trees on the left hand side, but even if upload permission is granted only to one of those roles, user still able to upload file to ALL directories even the ones ABOVE the root directory of this particular role. I wish someone told me that there is something that I'm missing or doing wrong.
My Default permissions are set to "Role View Access"
#3
I have the same problem. A user with access only on one role and directory (webfm/A) and upload on another directory (webfm/B) can upload to both directories. Any suggestions?