Permission based on CB field

13 years 2 months ago #20935 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
13 years 2 months ago #20979 by mikko
$my->id gives you the user id. Then see for how to access the database. CB stores thing in #__comprofiler table.

Moderators: beatnantkrileon
Time to create page: 0.382 seconds

Facebook Twitter LinkedIn