From cb6f9c1af4cb662c41c28cd8eb0b7fa37e886cda Mon Sep 17 00:00:00 2001 From: Victor Costa Date: Thu, 21 May 2015 15:13:29 -0300 Subject: [PATCH] Fix profile role verification --- app/models/profile.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/profile.rb b/app/models/profile.rb index e7172ae..b0546b8 100644 --- a/app/models/profile.rb +++ b/app/models/profile.rb @@ -73,7 +73,7 @@ class Profile < ActiveRecord::Base find_role('editor', env_id) end def self.organization_member_roles(env_id) - all_roles(env_id).select{ |r| r.key.match(/^profile_/) unless r.key.blank? || !r.profile_id.nil?} + all_roles(env_id).select{ |r| r.key.match(/^profile_/) unless r.key.blank? } end def self.all_roles(env_id) Role.all :conditions => { :environment_id => env_id } -- libgit2 0.21.2