mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-08 06:01:22 +00:00
GUAC-1407: Fixed canClone comment and declaration of selfUsername variable,
This commit is contained in:
@@ -106,7 +106,7 @@ angular.module('manage').controller('manageUserController', ['$scope', '$injecto
|
|||||||
*
|
*
|
||||||
* @type String
|
* @type String
|
||||||
*/
|
*/
|
||||||
var selfUsername = '';
|
$scope.selfUsername = '';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* All user accounts associated with the same username as the account being
|
* 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
|
* Returns whether the current user can clone the user being edited within
|
||||||
* the given data source. Saving will create or update that user depending
|
* the given data source.
|
||||||
* on whether the user already exists.
|
|
||||||
*
|
*
|
||||||
* @param {String} [dataSource]
|
* @param {String} [dataSource]
|
||||||
* The identifier of the data source to check. If omitted, this will
|
* The identifier of the data source to check. If omitted, this will
|
||||||
* default to the currently-selected data source.
|
* default to the currently-selected data source.
|
||||||
*
|
*
|
||||||
* @returns {Boolean}
|
* @returns {Boolean}
|
||||||
* true if the current user can save changes to the user being edited,
|
* true if the current user can clone the user being edited, false
|
||||||
* false otherwise.
|
* otherwise.
|
||||||
*/
|
*/
|
||||||
$scope.canCloneUser = function canCloneUser(dataSource) {
|
$scope.canCloneUser = function canCloneUser(dataSource) {
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user