branch feature/7685 created (now 2b6c22c)
This is an automated email from the git hooks/post-receive script. New change to branch feature/7685 in repository faxtomail. See http://git.codelutin.com/faxtomail.git at 2b6c22c fixes #7685 Récupération des clients quand l'utilisateur n'a pas le droit de lecture sur le dossier portant la société This branch includes the following new commits: new 2b6c22c fixes #7685 Récupération des clients quand l'utilisateur n'a pas le droit de lecture sur le dossier portant la société The 1 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference. Detailed log of new commits: commit 2b6c22c1b74b34f48c5669f0b497b20aa7f30fc4 Author: Kevin Morin <morin@codelutin.com> Date: Mon Nov 2 15:02:25 2015 +0100 fixes #7685 Récupération des clients quand l'utilisateur n'a pas le droit de lecture sur le dossier portant la société -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@codelutin.com>.
This is an automated email from the git hooks/post-receive script. New commit to branch feature/7685 in repository faxtomail. See http://git.codelutin.com/faxtomail.git commit 2b6c22c1b74b34f48c5669f0b497b20aa7f30fc4 Author: Kevin Morin <morin@codelutin.com> Date: Mon Nov 2 15:02:25 2015 +0100 fixes #7685 Récupération des clients quand l'utilisateur n'a pas le droit de lecture sur le dossier portant la société --- .../faxtomail/services/service/ClientServiceImpl.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/faxtomail-service/src/main/java/com/franciaflex/faxtomail/services/service/ClientServiceImpl.java b/faxtomail-service/src/main/java/com/franciaflex/faxtomail/services/service/ClientServiceImpl.java index c066c72..7382c76 100644 --- a/faxtomail-service/src/main/java/com/franciaflex/faxtomail/services/service/ClientServiceImpl.java +++ b/faxtomail-service/src/main/java/com/franciaflex/faxtomail/services/service/ClientServiceImpl.java @@ -315,6 +315,18 @@ public class ClientServiceImpl extends FaxToMailServiceSupport implements Client List<MailFolder> folders = getMailFolderService().getRootMailFoldersWithReadingRights(user); Set<String> companies = new HashSet<>(); + for (MailFolder folder : folders) { + + MailFolder folderWithCompany = folder; + while (!folderWithCompany.isUseCurrentLevelCompany() && folderWithCompany != null) { + folderWithCompany = folderWithCompany.getParent(); + } + + if (folderWithCompany != null) { + companies.add(folderWithCompany.getCompany()); + } + } + fetchCompaniesFromFolders(folders, companies); ClientTopiaDao clientDao = getPersistenceContext().getClientDao(); -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@codelutin.com>.
participants (1)
-
codelutin.com scm