ad_user_group_authorized_admin_or_site_admin

one of the documented procedures in this installation of the ACS
Usage:
ad_user_group_authorized_admin_or_site_admin   user_id   group_id   db
What it does:
Returns 1 if the user has a role of administrator for the specified group OR if the user is a site-wide administrator. 0 otherwise.
Defined in: /web/philip/packages/acs-core/user-groups-procs.tcl

Source code:


    if [ad_administrator_p $db $user_id] {
	return 1
    } else {
	# user is not a site-wide admin, but they might be a group admin
	set n_rows [database_to_tcl_string $db "select count(*) from user_group_map where user_id = $user_id and group_id = $group_id and lower(role) = 'administrator'"]
	if { $n_rows > 0 } {
	    return 1
	} else {
	    return 0
	}
    }


philg@mit.edu