Skip to Content Skip to Menu

🕒 Save Time and Effort with CB Editor Assistant: Effortlessly create and refine content in Joomla 3, 4, & 5.
🎁 Limited Offer: Enjoy a 5-day FREE trial and save up to 30% afterward!

[SOLVED] Can someone explain get_group_id?

  • chrizuk
  • chrizuk
  • OFFLINE
  • Posts: 23
  • Thanks: 0
  • Karma: 0
12 years 3 months ago - 12 years 3 months ago #210920 by chrizuk
Hello all,

I'm looking at restricting a function inside a tab. So far I have:
Code:
if ($user->id == $_CB_framework->myId()) {

but i'd like to add:
Code:
if ($user->id == $_CB_framework->myId() && user->gid == $_CB_framework->acl->get_group_id( $row->usertype, 'ARO' )) {

would this work? what does ARO stand for?

Regards,
Chris
Last edit: 12 years 3 months ago by chrizuk. Reason: Solved

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

  • chrizuk
  • chrizuk
  • OFFLINE
  • Posts: 23
  • Thanks: 0
  • Karma: 0
12 years 3 months ago #210922 by chrizuk
Ok so I've figured it out:
Code:
if ($user->id == $_CB_framework->myId() && $user->gid == $_CB_framework->acl->get_group_id( 'User Group Name', 'ARO' )) {

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

Moderators: beatnantkrileon
Powered by Kunena Forum