app/views/iugu/account_roles/edit.html.haml in iugusdk-1.0.0.alpha.25 vs app/views/iugu/account_roles/edit.html.haml in iugusdk-1.0.0.alpha.26

- old
+ new

@@ -10,12 +10,13 @@ = @account_user.user.email %div{ :style => "margin-bottom:20px" } - if current_user.is?(:owner, @account) - APP_ROLES['roles'].each do |role| - %div{ :style => "margin-bottom: 5px" } - = check_box_tag "roles[]", role, @account_user.is?(role), :id => "#{role}_checkbox" - = label_tag "#{role}_checkbox", I18n.t("iugu.#{role}") + - unless role == APP_ROLES['owner_role'] + %div{ :style => "margin-bottom: 5px" } + = check_box_tag "roles[]", role, @account_user.is?(role), :id => "#{role}_checkbox" + = label_tag "#{role}_checkbox", I18n.t("iugu.#{role}") - elsif current_user.is?(:admin, @account) - APP_ROLES['roles'].each do |role| - unless role == APP_ROLES['owner_role'] || role == APP_ROLES['admin_role'] %div{ :style => "margin-bottom: 5px" }