• Page:
  • 1

Check if a user belongs to a specific group in uKnowva

OFFLINE

Check if a user belongs to a specific group in uKnowva

4 years, 6 months ago
You can simply use this:

if(uKnowvaFactory::getUser()->belongsToGroup($smgroupid)){
 //ur code here:
}


Above code works only for 2.4.3 and above....for lower versions u can simply use the below code

if(in_array($smgroupid,uKnowvaFactory::getUser()->getAuthorisedGroups())){
 //ur code here:
}


Last Edit: 4 years, 6 months ago by Vicky Jain.
The following user(s) said Thank You: Nikhil Chaughule
  • Page:
  • 1

Upcoming Events

No events found.

Who's Online

5 users online