Permission based on CB field

17 years 6 months ago #20935 by rwk
Permission based on CB field was created by rwk
Hello, I'm new in CB community.
I need a "groupware" access level at one page (php page)
I added a new CB field, "auth_level", and I would write an php page, that get "auth_level" value of the current user, and act differently.

(it can be ok, if hide a menu link based on the CB field value)

I read that CB fields are on the db, but how can I "know" which user is logged?

there's a method to get various user parameters in a php page?

many thanks

Please Log in to join the conversation.

17 years 6 months ago #20979 by mikko
Replied by mikko on topic Re:Permission based on CB field
$my->id gives you the user id. Then see api.joomla.org for how to access the database. CB stores thing in #__comprofiler table.

mikko

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.161 seconds

Facebook Twitter LinkedIn