Feature #3090: Create group form, add ACL to share all the resources not only VMs

This commit is contained in:
Daniel Molina committed 2014-07-23 16:12:14 +02:00
1 parent 373dd5fa9c
commit ddfdfd384b
1 file changed
+4 -4
+4 -4
View File
@@ -123,9 +123,9 @@ function create_group_tmpl(dialog_name){
<div class="row">\
<div class="large-12 columns">\
<label>\
<input type="checkbox" id="share_vms" name="share_vms" value="YES" />\
<input type="checkbox" id="shared_resources" name="shared_resources" value="YES" />\
'+tr("Allow users to view the VMs of other users in the same group")+'\
<span class="tip">'+tr("An ACL Rule will be created to give users in this group access to all the VMs in the same group.")+'</span>\
<span class="tip">'+tr("An ACL Rule will be created to give users in this group access to all the resources in the same group.")+'</span>\
</label>\
</div>\
</div>\
@@ -1165,8 +1165,8 @@ function setupCreateGroupDialog(){
group_json['group']['resources'] = resources;
if ( $('#share_vms', this).prop('checked') ){
group_json['group']['shared_resources'] = "VM";
if ( $('#shared_resources', this).prop('checked') ){
group_json['group']['shared_resources'] = "VM+NET+IMAGE+TEMPLATE+DOCUMENT";
}
if (user_json){