public function get_group_permission($group)
	{
		$db =  \App::get('db');
		$quoted_project_id = $db->quote($this->id);

		if ($group == 'authenticated')
		{
			$group = '0';
		}
		$quoted_group = $db->quote($group);
		if (is_numeric($group))
		{
			$query = "SELECT action FROM `#__trac_group_permission` AS gp WHERE gp.trac_project_id=$quoted_project_id AND gp.group_id=$quoted_group;";
		}
		else
		{
			$query = "SELECT action FROM `#__trac_group_permission` AS gp, `#__xgroups` AS g WHERE gp.trac_project_id=$quoted_project_id AND g.gidNumber=gp.group_id AND g.cn=$quoted_group;";
		}

		$db->setQuery($query);
		$result = $db->loadColumn();

		return $result;
	}