Multiple roles and shared folders
AD-DA - July 9, 2008 - 15:49
| Project: | IMCE |
| Version: | 6.x-1.3 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Description
In the current version, when a user has multiple roles with IMCE enabled, IMCE will only display the folder for the role with the highest priority (which is I believe the role with the role with the smallest ID.
This is logical for personal folders: this way ensure that a user only use a single personal folder.
However, for roles which are assigned to shared folders, a user should be able to contribute to all the shared folders for the roles which are assigned to them, especially have a personal folder, and be able to contribute to a shared folder.
Would it be possible to implement this?

#1
Is there a way to get it working ?
#2
Here is a patch to merge all allowed directories from multiple assigned roles.
Permissions and allowed extensions are those from the smaller weight.
Please review