protected function getGroupId()
	{
		$userId = $this->getUserId();
		$users = new System_Models_UserMapper();
		$groupId = $users->getGroupId($userId);
		return $groupId;
	}
	public function checkAuth($userId,$modName)
	{
		$users = new System_Models_UserMapper();
		$groupId = $users->getGroupId($userId);
		$mns = new System_Models_ModnameMapper();
		$modId = $mns->getModId($modName);
		
		$result = $this->getDbtable()->checkAuth($groupId,$modId);
		
		$auth = $result['modPriv'];
		return $auth;
	}