Skip to content

Commit

Permalink
Fix valid_tenant check in ops.
Browse files Browse the repository at this point in the history
  • Loading branch information
martinpovolny committed Jan 20, 2017
1 parent f8f252b commit 4dc143c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/controllers/ops_controller/ops_rbac.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1028,8 +1028,7 @@ def rbac_user_validate?
end

def valid_tenant?(tenant_id)
all_tenants, = Tenant.tenant_and_project_names
all_tenants.include?(tenant_id)
Rbac.filtered(Tenant.in_my_region.where(:id => tenant_id)).present?
end

# Get variables from group edit form
Expand Down

0 comments on commit 4dc143c

Please sign in to comment.