mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
bug #2876: Improve GROUP_ADMIN_VIEWS check
This commit is contained in:
parent
6de45c41f4
commit
699a725fe6
@ -70,7 +70,7 @@ class SunstoneViews
|
||||
|
||||
gadmins = group["TEMPLATE/GROUP_ADMINS"]
|
||||
|
||||
if !gadmins.nil? && gadmins =~ /#{user_name}/ && group["TEMPLATE/GROUP_ADMIN_VIEWS"]
|
||||
if gadmins && gadmins.split(',').include?(user_name) && group["TEMPLATE/GROUP_ADMIN_VIEWS"]
|
||||
available << group["TEMPLATE/GROUP_ADMIN_VIEWS"].split(",")
|
||||
end
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user