function classUserRights() {
	var calledDomain = '';
	var userrights = 0;
	var userId = 0;
	
	this.setDomain = function(domainValue){
		calledDomain = domainValue;
	}
	
	this.getDomain = function(){
		return calledDomain;
	}

	this.setUserrights = function(userrightsValue){
		userrights = userrightsValue;
	}
	
	this.setUserId = function(userIdValue){
		userId = userIdValue;
	}
	
	this.getUserrights = function(){
		return userrights;
	}
	
	this.getUserId = function(){
		return userId;
	}
	
	this.allowedAddSpielfeld = function(){
		if (userrights >= 1)
			return true;
		else
			return false;
	}
	
	this.allowedReportComment = function(){
		if (userrights >= 1)
			return true;
		else
			return false;
	}
	
	this.allowedDeleteComment = function(){
		if (userrights >= 2)
			return true;
		else
			return false;
	}
	
	this.isAdmin = function(){
		if (userrights >= 2)
			return true;
		else
			return false;
	}
	
	this.allowedEditSpielfeld = function(){
		if (userrights >= 2)
			return true;
		else
			return false;
	}
	
	this.allowedSyncGmap = function(){
		if (userrights >= 2)
			return true;
		else
			return false;
	}
	
	this.allowedAddPreis = function(){
		if (userrights >= 1)
			return true;
		else
			return false;
	}
	
	this.allowedRate = function(){
		if (userrights >= 1)
			return true;
		else
			return false;
	}
	
	this.allowedTermin = function(){
		if (userrights >= 1)
			return true;
		else
			return false;
	}
	
	this.allowedUploadPic = function(){
		if (userrights >= 1)
			return true;
		else
			return false;
	}
	
	this.allowedLogin = function(){
		if (userrights == 0)
			return true;
		else
			return false;
	}
	
	this.allowedLogout = function(){
		if (userrights >= 1)
			return true;
		else
			return false;
	}
}