mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-08 06:01:22 +00:00
GUACAMOLE-292: Display all object attributes if we are creating the object.
This commit is contained in:
@@ -225,8 +225,8 @@ angular.module('manage').controller('manageUserController', ['$scope', '$injecto
|
||||
};
|
||||
|
||||
/**
|
||||
* Returns whether the current user can change attributes associated with
|
||||
* the user being edited within the given data source.
|
||||
* Returns whether the current user can change attributes explicitly
|
||||
* associated with the user being edited within the given data source.
|
||||
*
|
||||
* @param {String} [dataSource]
|
||||
* The identifier of the data source to check. If omitted, this will
|
||||
@@ -260,6 +260,23 @@ angular.module('manage').controller('manageUserController', ['$scope', '$injecto
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* Returns whether the current user can change/set all user attributes for
|
||||
* the user being edited, regardless of whether those attributes are
|
||||
* already explicitly associated with that user.
|
||||
*
|
||||
* @returns {Boolean}
|
||||
* true if the current user can change all attributes for the user
|
||||
* being edited, regardless of whether those attributes are already
|
||||
* explicitly associated with that user, false otherwise.
|
||||
*/
|
||||
$scope.canChangeAllAttributes = function canChangeAllAttributes() {
|
||||
|
||||
// All attributes can be set if we are creating the user
|
||||
return !$scope.userExists(selectedDataSource);
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* Returns whether the current user can change permissions of any kind
|
||||
* which are associated with the user being edited within the given data
|
||||
|
Reference in New Issue
Block a user