If a participant of a discussion has the author role, he should receive the url for authors, but he receives the url for "editors".
same case for discussions with reviewers.
I've tried to solve the problem by adding a param to Mailable, but I'm stuck.
I did a PR with a beginning but I'm not sure it's the right way to go...
I wonder if the simplest way wouldn't be to put a redirect in dispatcher for the main url “workflow/access/$submissionId”, depending on the current user's role: if he's only an author on the submission, we'll redirect him to authorDashboard and if he's only a reviewer, we'll redirect him to reviewer dashboard.
If a participant of a discussion has the author role, he should receive the url for authors, but he receives the url for "editors". same case for discussions with reviewers.
I've tried to solve the problem by adding a param to Mailable, but I'm stuck. I did a PR with a beginning but I'm not sure it's the right way to go...
I wonder if the simplest way wouldn't be to put a redirect in dispatcher for the main url “workflow/access/$submissionId”, depending on the current user's role: if he's only an author on the submission, we'll redirect him to authorDashboard and if he's only a reviewer, we'll redirect him to reviewer dashboard.
what do you think?
Thank you