Last time I looked the permissions are constants in GForum.pm so you'd need to import them and do something like:
if ($USER == USER_STATUS_ADMIN)
....or whatever the right name is.
if ($USER == USER_STATUS_ADMIN)
....or whatever the right name is.