0

I've created a custom authentication plugin, which allows me to login to Joomla with my own user Table. So at this point, the authentication to the system is working and a user object will be created. All information until logout can be seen with $user = JFactory::getUser();.

My problem is, that after login, my menue won't be shown. It seems, that my template is not loaded. If I manually change the userid to one of the registered users in Joomla (only the id will be changed, no other values of the user object), the template will be loaded and the menue will be shown.

What do I have to do to get this to work? What is missing, or what do I wrong?

Perino
  • 608
  • 9
  • 30

1 Answers1

0

Because of the Joomla rights system, Joomla calls getAuthorisedViewLevels() and getGroupsByUser() in libraries/joomla/access/access.phpin and looks up the groups from user_usergroup_map.

Because it is an external user authentication, there is no user_usergroup mapping.

Therfore I built a work around. During the login procedure I added a function to my plugin which sets the user_id in the user_usergroup_map table for temporary using.

In case of logging out, the entry in the user_usergroup_map table will be removed.

Perino
  • 608
  • 9
  • 30
  • Thank you for answering your own question. It is good for other readers. Let me note that since some time, Joomla has its own StackExchange site: [joomla.stackexchange.com](http://joomla.stackexchange.com). I recommend you to ask [tag:joomla]-related questions there. – miroxlav Jan 24 '15 at 12:08