mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-23 21:27:10 +09:00
feature #4217: Add MarketPlace to acl rules
This commit is contained in:
1 parent
019966cd79
commit
a4aa7dc798
5 files changed
+20
-12
No files matched your search
@@ -9,9 +9,9 @@
|
||||
:size: 8
|
||||
:right: true
|
||||
|
||||
:RES_VHNIUTGDCOZSvR:
|
||||
:RES_VHNIUTGDCOZSvRM:
|
||||
:desc: Which resource the rule applies to
|
||||
:size: 18
|
||||
:size: 19
|
||||
|
||||
:RID:
|
||||
:desc: Resource ID
|
||||
@@ -31,7 +31,7 @@
|
||||
:default:
|
||||
- :ID
|
||||
- :USER
|
||||
- :RES_VHNIUTGDCOZSvR
|
||||
- :RES_VHNIUTGDCOZSvRM
|
||||
- :RID
|
||||
- :OPE_UMAC
|
||||
- :ZONE
|
||||
@@ -44,7 +44,7 @@ private
|
||||
def self.resource_mask(str)
|
||||
resource_type=str.split("/")[0]
|
||||
|
||||
mask = "--------------"
|
||||
mask = "---------------"
|
||||
|
||||
resource_type.split("+").each{|type|
|
||||
case type
|
||||
@@ -76,6 +76,8 @@ private
|
||||
mask[12] = "v"
|
||||
when "VROUTER"
|
||||
mask[13] = "R"
|
||||
when "MARKETPLACE"
|
||||
mask[14] = "M"
|
||||
end
|
||||
}
|
||||
mask
|
||||
@@ -115,8 +117,8 @@ private
|
||||
d['STRING'].split(" ")[0]
|
||||
end
|
||||
|
||||
column :RES_VHNIUTGDCOZSvR, "Resource to which the rule applies",
|
||||
:size => 18 do |d|
|
||||
column :RES_VHNIUTGDCOZSvRM, "Resource to which the rule applies",
|
||||
:size => 19 do |d|
|
||||
OneAclHelper::resource_mask d['STRING'].split(" ")[1]
|
||||
end
|
||||
|
||||
@@ -133,7 +135,7 @@ private
|
||||
OneAclHelper::right_mask d['STRING'].split(" ")[2]
|
||||
end
|
||||
|
||||
default :ID, :USER, :RES_VHNIUTGDCOZSvR, :RID, :OPE_UMAC, :ZONE
|
||||
default :ID, :USER, :RES_VHNIUTGDCOZSvRM, :RID, :OPE_UMAC, :ZONE
|
||||
end
|
||||
|
||||
table
|
||||
|
||||
Reference in new issue
Block a user