mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-15 09:13:15 +09:00
Feature #3090: Create group form, add ACL to share all the resources not only VMs
This commit is contained in:
1 parent
373dd5fa9c
commit
ddfdfd384b
1 file changed
+4
-4
@@ -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){
|
||||
|
||||
Reference in new issue
Block a user