You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@guacamole.apache.org by vn...@apache.org on 2018/05/04 08:27:05 UTC

[11/21] guacamole-client git commit: GUACAMOLE-220: Include the identifier of the associated object within ManagementPermissions.

GUACAMOLE-220: Include the identifier of the associated object within ManagementPermissions.

Project: http://git-wip-us.apache.org/repos/asf/guacamole-client/repo
Commit: http://git-wip-us.apache.org/repos/asf/guacamole-client/commit/1989c11d
Tree: http://git-wip-us.apache.org/repos/asf/guacamole-client/tree/1989c11d
Diff: http://git-wip-us.apache.org/repos/asf/guacamole-client/diff/1989c11d

Branch: refs/heads/master
Commit: 1989c11dd98ac76258d44c001bdf6e362be4f871
Parents: 708c255
Author: Michael Jumper <mj...@apache.org>
Authored: Tue May 1 16:39:02 2018 -0700
Committer: Michael Jumper <mj...@apache.org>
Committed: Tue May 1 20:58:28 2018 -0700

----------------------------------------------------------------------
 .../main/webapp/app/manage/types/ManagementPermissions.js | 10 ++++++++++
 1 file changed, 10 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/guacamole-client/blob/1989c11d/guacamole/src/main/webapp/app/manage/types/ManagementPermissions.js
----------------------------------------------------------------------
diff --git a/guacamole/src/main/webapp/app/manage/types/ManagementPermissions.js b/guacamole/src/main/webapp/app/manage/types/ManagementPermissions.js
index f9a78b7..5d02a76 100644
--- a/guacamole/src/main/webapp/app/manage/types/ManagementPermissions.js
+++ b/guacamole/src/main/webapp/app/manage/types/ManagementPermissions.js
@@ -38,6 +38,14 @@ angular.module('manage').factory('ManagementPermissions', ['$injector',
     var ManagementPermissions = function ManagementPermissions(template) {
 
         /**
+         * The identifier of the associated object, or null if the object does
+         * not yet exist.
+         *
+         * @type String
+         */
+        this.identifier = template.identifier || null;
+
+        /**
          * Whether the user can save the associated object. This could be
          * updating an existing object, or creating a new object.
          *
@@ -129,6 +137,8 @@ angular.module('manage').factory('ManagementPermissions', ['$injector',
 
         return new ManagementPermissions({
 
+            identifier : identifier,
+
             // A user can save (create or update) an object if they are a
             // system-level administrator, OR the object does not yet exist and
             // the user has explicit permission to create such objects, OR the