app/views/caboose/users/_admin_header.html.erb in caboose-cms-0.9.100 vs app/views/caboose/users/_admin_header.html.erb in caboose-cms-0.9.101

- old
+ new

@@ -7,18 +7,19 @@ <h1>Edit User - <%= @edituser.first_name %> <%= @edituser.last_name %></h1> <ul id='tabs'> <% tabs = { 'General' => "/admin/users/#{@edituser.id}", - 'Invoices' => "/admin/users/#{@edituser.id}/invoices", 'Login Logs' => "/admin/login-logs?user_id=#{@edituser.id}", 'Password' => "/admin/users/#{@edituser.id}/password", 'Roles' => "/admin/users/#{@edituser.id}/roles", 'Delete' => "/admin/users/#{@edituser.id}/delete" } -if @site.use_store +if @site.use_store || @site.is_master arr = tabs.to_a.insert(1, ['Payment Method', "/admin/users/#{@edituser.id}/payment-method"]) tabs = Hash[arr] + arr = tabs.to_a.insert(2, ['Invoices', "/admin/users/#{@edituser.id}/invoices"]) + tabs = Hash[arr] arr = tabs.to_a.insert(5, ['Variant Limits', "/admin/users/#{@edituser.id}/variant-limits"]) tabs = Hash[arr] end if Caboose::Subscription.where(:site_id => @site.id).exists? arr = tabs.to_a.insert(6, ['Subscriptions', "/admin/users/#{@edituser.id}/subscriptions"]) \ No newline at end of file