Skip to Content Skip to Menu

[SOLVED] Can someone explain get_group_id?

  • chrizuk
  • chrizuk
  • OFFLINE
  • Posts: 26
  • Thanks: 1
  • Karma: 0
11 years 7 months ago - 11 years 7 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: 11 years 7 months ago by chrizuk. Reason: Solved

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

  • chrizuk
  • chrizuk
  • OFFLINE
  • Posts: 26
  • Thanks: 1
  • Karma: 0
11 years 7 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

Facebook Twitter LinkedIn