From 2bee2eab494ab02d1fd2c4a3b820b8fd1a01aa40 Mon Sep 17 00:00:00 2001 From: James Muehlner Date: Tue, 29 Dec 2015 10:45:24 -0800 Subject: [PATCH] GUAC-1407: Fixed canClone comment and declaration of selfUsername variable, --- .../app/manage/controllers/manageUserController.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/guacamole/src/main/webapp/app/manage/controllers/manageUserController.js b/guacamole/src/main/webapp/app/manage/controllers/manageUserController.js index 327f56aee..125d41964 100644 --- a/guacamole/src/main/webapp/app/manage/controllers/manageUserController.js +++ b/guacamole/src/main/webapp/app/manage/controllers/manageUserController.js @@ -106,7 +106,7 @@ angular.module('manage').controller('manageUserController', ['$scope', '$injecto * * @type String */ - var selfUsername = ''; + $scope.selfUsername = ''; /** * All user accounts associated with the same username as the account being @@ -383,17 +383,16 @@ angular.module('manage').controller('manageUserController', ['$scope', '$injecto }; /** - * Returns whether the current user can save the user being edited within - * the given data source. Saving will create or update that user depending - * on whether the user already exists. + * Returns whether the current user can clone the user being edited within + * the given data source. * * @param {String} [dataSource] * The identifier of the data source to check. If omitted, this will * default to the currently-selected data source. * * @returns {Boolean} - * true if the current user can save changes to the user being edited, - * false otherwise. + * true if the current user can clone the user being edited, false + * otherwise. */ $scope.canCloneUser = function canCloneUser(dataSource) {