Ning Developer Docs

Hi,

I know how to access NING variables such as $user->isloggedin, ->isOwner

Is there a way to find if they are admin? eg. ->isAdmin ???

Can someone help me here?

Cheers!

heres my code:

$user = XN_Profile::current();
if($user->isOwner()){ echo"is owner"; }
if($user->isLoggedIn()){ echo"is logged in"; }
if($user->isAdmin()){ echo"is Admin"; } < This is what I need.

Views: 2

Replies to This Discussion

Try : $this->isAdmin = XG_SecurityHelper::userIsAdmin();
It worked!

I used:
$isadmin = XG_SecurityHelper::userIsAdmin();

Thanks man :)

RSS

© 2026   Created by Ning Developer Admin.   Powered by

Badges  |  Report an Issue  |  Terms of Service