When a user tries to access the path emf/_listid_, they will get an empty page when they are already subscribed. Only when they visit another page, they will see the message "You are not allowed to view this subscription form or are already subscribed to this list." This is because the way this situation is handled; when the page callback encounters this situation, it will only call drupal_set_message and return nothing. For a page to be displayed, the menu callback either needs to return the page content, or return a status code. I think in this case, the callback should return MENU_ACCESS_DENIED.

CommentFileSizeAuthor
#1 1195526_return_access_denied.patch756 byteseelkeblok
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

eelkeblok’s picture

Status: Active » Needs review
FileSize
756 bytes

Attaching patch