diff --git a/app/controllers/organisation_users_controller.rb b/app/controllers/organisation_users_controller.rb deleted file mode 100644 index 6bdeeb3..0000000 --- a/app/controllers/organisation_users_controller.rb +++ /dev/null @@ -1,25 +0,0 @@ -class OrganisationUsersController < ApplicationController - - def admin_index - if user_signed_in? && current_user.is_org_admin? then - # find excluded user_id's - excluded_ids = params[:user_ids] - excluded_ids.each do |user_id| - User.find(user_id).remove_token - end - # remove their api_tokens - # find included user id's - params[:user_ids].each do |user_id| - User.find(user_id).keep_or_generate_token - end - # keep_or_generate_token - respond_to do |format| - format.html # index.html.erb - format.json { render json: @organisation_users } - end - else - render(:file => File.join(Rails.root, 'public/403.html'), :status => 403, :layout => false) - end - end - -end \ No newline at end of file diff --git a/app/views/organisation_users/admin_index.html.erb b/app/views/organisation_users/admin_index.html.erb deleted file mode 100644 index 933defc..0000000 --- a/app/views/organisation_users/admin_index.html.erb +++ /dev/null @@ -1,65 +0,0 @@ -<%= stylesheet_link_tag "admin" %> - -
| <%= t('org_admin.user_full_name') %> | -<%= t('org_admin.user_name') %> | -<%= t('org_admin.last_logged_in') %> | -<%= t('org_admin.how_many_plans') %> | - <% if current_user.organisation.token_permission_types.count > 0 %> -<%= t('org_admin.api_privleges') %> | - <% end %> -
|---|---|---|---|---|
| - <% if !user_id.user.name.nil? then%> - <%= user_id.user.name %> - <% end %> - | -- <%= user_id.user.email %> - | -- <% if !user_id.user.last_sign_in_at.nil? then%> - <%= l user_id.user.last_sign_in_at.to_date, :formats => :short %> - <% end %> - | -- <% if !user_id.user.project_groups.nil? then%> - <%= user_id.user.project_groups.count %> - <% end %> - | - <% if current_user.organisation.token_permission_types.count > 0 %> -- <%= check_box_tag "user_ids[]", user_id %> - - | - <% end %> -