function getResourceGroupID($groupdname) {
	list($type, $name) = explode('/', $groupdname);
	$query = "SELECT g.id "
	       . "FROM resourcegroup g, "
	       .      "resourcetype t "
	       . "WHERE g.name = '$name' AND "
	       .       "t.name = '$type' AND "
	       .       "g.resourcetypeid = t.id";
	$qh = doQuery($query, 371);
	if($row = mysql_fetch_row($qh))
		return $row[0];
	else
		return NULL;
}
Weaknesses in this category are related to the management of permissions, privileges, and other security features that are used to perform access control.