GUACAMOLE-292: Restrict attributes on object management pages to those explicitly present on the object.

This commit is contained in:
Michael Jumper
2017-02-21 23:32:38 -08:00
parent 07fb473da7
commit 22cce48558
6 changed files with 69 additions and 6 deletions

View File

@@ -40,7 +40,8 @@
<!-- Connection attributes section -->
<div class="attributes">
<guac-form namespace="'CONNECTION_ATTRIBUTES'" content="attributes" model="connection.attributes"></guac-form>
<guac-form namespace="'CONNECTION_ATTRIBUTES'" content="attributes"
model="connection.attributes" model-only="true"></guac-form>
</div>
<!-- Connection parameters -->

View File

@@ -40,7 +40,8 @@
<!-- Connection group attributes section -->
<div class="attributes">
<guac-form namespace="'CONNECTION_GROUP_ATTRIBUTES'" content="attributes" model="connectionGroup.attributes"></guac-form>
<guac-form namespace="'CONNECTION_GROUP_ATTRIBUTES'" content="attributes"
model="connectionGroup.attributes" model-only="true"></guac-form>
</div>
<!-- Form action buttons -->

View File

@@ -22,7 +22,7 @@
<!-- Sharing profile attributes section -->
<div class="attributes">
<guac-form namespace="'SHARING_PROFILE_ATTRIBUTES'" content="attributes"
model="sharingProfile.attributes"></guac-form>
model="sharingProfile.attributes" model-only="true"></guac-form>
</div>
<!-- Sharing profile parameters -->

View File

@@ -41,7 +41,8 @@
<!-- User attributes section -->
<div class="attributes" ng-show="canChangeAttributes()">
<guac-form namespace="'USER_ATTRIBUTES'" content="attributes" model="user.attributes"></guac-form>
<guac-form namespace="'USER_ATTRIBUTES'" content="attributes"
model="user.attributes" model-only="true"></guac-form>
</div>
<!-- System permissions section -->