Skip to Content Skip to Menu

Access control to user data

  • mikko
  • mikko
  • OFFLINE
  • Posts: 703
  • Thanks: 0
  • Karma: 115
17 years 4 months ago #40701 by mikko
Replied by mikko on topic Re:Access control to user data
It should be about right. {$user} is resolved to the userid.

You should put your site to debug to see what kind of query it produces, and then try running this with phpMyAdmin to see why it does not return results.


-Mikko

Please Log in or Create an account to join the conversation.

  • chris2005
  • chris2005
  • OFFLINE
  • Posts: 8
  • Thanks: 0
  • Karma: 0
17 years 4 months ago #40708 by chris2005
Replied by chris2005 on topic Re:Access control to user data
I subscribed to this topic. It seems the forum post you'd made did not come properly with the email. {user} was missing in it. I will try it again with the proper query.

Please Log in or Create an account to join the conversation.

  • chris2005
  • chris2005
  • OFFLINE
  • Posts: 8
  • Thanks: 0
  • Karma: 0
17 years 4 months ago #40712 by chris2005
Replied by chris2005 on topic Re:Access control to user data
I got it working now. I use:

select 1 from #__comprofiler where id={$my} and cb_psygenoten=1;

to get the functionality I need. So {$my} instead of {$user}

Thanx for your help.

Regards,
Chris

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum