[SOLVED] Login / logout main menu items "You are not authorised etc."

2 years 11 months ago - 2 years 11 months ago #324625 by cgwhite
Dear All,

I have a small site set up with a Login link in the main menu. It has guest access set on it so that it appears when a guest is viewing the site. It is linked to CB's Login module which is set to public access.

I have also set up a logout menu item on the main menu that is set to Registered access. So this only appears when the registered user logs on.

The strange thing is that when a user logs on the Login link on the menu disappears as you would expect and the logout menu item appears but I get an error message saying "You are not authorised to view this resource" even if it is an admin super user that logs on.

I have tried everything with access permissions to solve this but I am now stuck. Any help would be greatly appreciated.

It seems that it is compaining about a registered user not having access to the guest login link on the menu but the message does not give enough information about the error. Is there anywhere else that i could find out what the error is about?

Regards, Chris.

Please Log in to join the conversation.

2 years 11 months ago #324627 by krileon
"You are not authorised to view this resource" is a Joomla error. Usually means you don't have access to the menu item or the component via Joomla access controls. Logging out should attempt to redirect to your home page. If you configured a logout URL in your CB Login Module then ensure it's valid and something a public user can access. When you see "You are not authorised to view this resource" try going to a different page and checking if you're logged out and if you are then it's the logout redirect URL likely being the culprit.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

2 years 11 months ago #324630 by cgwhite
Thank you for the quick reply. It is when admin logs in that the error occurs. Surely admin should have access to everything. It seems the error is caused by the login menu item having guest access only.

Any further thoughts?

Regards
Chris

Please Log in to join the conversation.

2 years 11 months ago #324631 by krileon
Super Users does not have access to Guest. There's no reason for your logout menu item to be using Guest. Did you also set your CB Login Module to guest? If so set to it to Public.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

2 years 11 months ago #324635 by cgwhite
The CB login module is set to public. The only item set to guest is the login menu item. The idea being that when the user, in my case the admin user, logs on, the login menu item is hidden. It is hidden but the error message pops up.

Please Log in to join the conversation.

2 years 11 months ago - 2 years 11 months ago #324640 by krileon
No idea. The error you're seeing is a Joomla one and not a CB one. Are you logged out after the error? If you are then as suggested earlier the issue is with where it's trying to redirect you after logout. If you're getting the error after logging in then it's same issue as in there is a problem with your login redirect. Both login and logout redirect are configured in your CB Login Module.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.297 seconds

Facebook Twitter LinkedIn