Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In the Tripal BLAST UI module, the Tripal job launcher is used to start the BLAST job. This causes a message to appear on the page indicating the job was submitted to the job queue, along with a link to the job queue page. But if the user is not logged in as an administrator, clicking the link causes an error. In addition, the link is likely to confuse the user as to where to go to get the BLAST results. (The user should just stay on the current page and wait.)
Fixing this appears to require a change to Tripal core.
Comments
Comment #1
spficklin CreditAttribution: spficklin commentedSo, just to clarify. You have a user that can add new blast content to the site, but this user doesn't have permission to view the job queue?
But you are correct, there is no check to make sure the user has access to the page before that link is included in the response. I'll fix this.
Comment #3
spficklin CreditAttribution: spficklin commentedI have added a bit of code to check if the user has the necessary administrative access before providing the link. If the user does not but is able to add a job then the message that a job has been added will be present, but the link will not. If the user has permission then both messages will be given. I'm marking the issue as closed, but please re-open if problems persist.
Comment #4
spficklin CreditAttribution: spficklin commentedForgot to mention. The fix is now in the 7.x-2.x development branch.