 app.factory("userlistFactory", function (Restangular, $http, settingsFactory, notificationFactory) {
	var object = {};
	var activeUsers = Restangular.all('users/active');
	var suspendedUsers = Restangular.all('users/suspended');
	object.getActiveUsers = function() {
		return activeUsers.getList();
	};
	object.getSuspendedUsers = function() {
		return suspendedUsers.getList();
	};
	object.activateUser = function(username) {
		console.log("Activate", username);
		var usernameData = { Username: username };
		$http.post(settingsFactory.backendUrl + "user/activate", usernameData).success(function (data) {
			console.log("ActivateUser Rückgabe", data);
		}).error(function (data, status) {
			if (status == 401) {
				notificationFactory.error({content: "You are not logged in as administrator."});
			} else {
				notificationFactory.error({title: "Error:", content: "Server error occured with status code: " + status + " and reponse: " + data });
			}
		});
	};
	
	object.changeRole = function(userID, role) {
		console.log("Change Role", userID);
		var userData = {UserID: userID, Role: role};
		$http.put(settingsFactory.backendUrl+"user", userData).success(function(data) {
		console.log("ChangeUser userID Rückgabe",data);
		}).error(function(data, status) {
			notificationFactory.error({title:"Error:", content: "Server error occurred with status code:  "+status+" and response: "+data});
		});
	};
	return object;
});;

@@ -1012,46 +1012,8 @@
 ) %7B%0A
-%09%09console.log(%22Change Role%22, userID);%0A
 %09%09va
@@ -1141,58 +1141,8 @@
 ) %7B%0A
-%09%09console.log(%22ChangeUser userID R%C3%BCckgabe%22,data);%0A
 %09%09%7D)

Remove debug messages