Hi,
Great module,
i have installed it to let login anonymous users when they try to see a view restricted to anonymous users.
The problem is that when i have enabled the module, before try to see this view page like an anonymous user, if I don’t register the view disappears at menus that linked to this views.
maybe this has nothing to do with the module
Thanks in advance!

Comments

hunmonk’s picture

Status: Active » Postponed (maintainer needs more info)

i'm sorry, i don't understand the issue. can you please try to explain it in more detail? perhaps by providing step by step instructions on how to reproduce it.

drupdruppalpal’s picture

Hi hummonk,

i will try to explain it better, but my English is quite bad‎.
I have a dropdown menu where a link points to a view that is restricted by role (View / Basic settings / Access: Multiple roles).

When anonymous user tries to see the view, he gets an Access Denied message.

It seemed a good idea to install login toboggan to entice users to register to see that content (the restricted view page).

Now the menu links pointing to the view not appears for anonymous users

i.e.
if i have a menu that contains five items, and the menu-item-3 points to the restricted view, the behavior is as follows:

| _MENU-item-1_ |
| _MENU-item-2_ |
| _MENU-item-3_ | (link to the restricted view) --> Access denied
| _MENU-item-4_ |
| _MENU-item-5_ |

After installing login toboggan, the expected behavior would be the NEXT:

| _MENU-item-1_ |
| _MENU-item-2_ |
| _MENU-item-3_ | (link to the restricted view) --> Login or Registration form
| _MENU-item-4_ |
| _MENU-item-5_ |

But to me what happens is that I go away the link to the restricted view:

| _MENU-item-1_ |
| _MENU-item-2_ |
| _MENU-item-4_ |
| _MENU-item-5_ |

(the menu-item-3) disapears

: P

Surely I have not clarified anything

thanks

hunmonk’s picture

LoginToboggan does absolutely nothing related to either the menu system' access controls or the anonymous user role.

here are a couple of things to check:
a) do you have the 'Present login form on access denied (403)' setting for LT enabled?
b) is the 'Default 403 (access denied) page' setting at 'admin/settings/error-reporting' the following: toboggan/denied
c) does views invoke a custom access denied handler when you have access restrictions? if so, try pointing it at toboggan/denied

my other suggestion is to disable all other contributed modules besides views and LT, and see if the problem still persists. if not, then it's one of those other modules causing the problem, not LT.

drupdruppalpal’s picture

Status: Postponed (maintainer needs more info) » Active

a+b are correct
but c...
i'm trying to reproduce it on a test server with a clean drupal installation.
probably caused by other module

pixelmord’s picture

Hi,

the problem is caused by the way Drupal handles menu-items for pages on which the access is denied for the user.
Drupal does not display menu-items that link to pages you are not allowed to access!

The only way to achieve the desired behaviour would be if you hard-code the link to the page
a) in the template
b) in a custom block

hunmonk’s picture

Status: Active » Closed (won't fix)

which means this issue is out of scope for this issue queue.