diff options
author | Luke Shumaker <shumakl@purdue.edu> | 2014-04-04 21:36:18 -0400 |
---|---|---|
committer | Luke Shumaker <shumakl@purdue.edu> | 2014-04-04 21:36:18 -0400 |
commit | 1187336fa7af4a82c472367adc1b46e5e089591b (patch) | |
tree | c8dfb0b3c1f769f2faf2e49b8647d7771376080d /app/controllers | |
parent | 1237ba91e19972d71dc81f57d847798a3ed88a63 (diff) |
remove hold overs from the old permission system
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/servers_controller.rb | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/app/controllers/servers_controller.rb b/app/controllers/servers_controller.rb index 3f11075..6596dc6 100644 --- a/app/controllers/servers_controller.rb +++ b/app/controllers/servers_controller.rb @@ -66,15 +66,6 @@ class ServersController < ApplicationController @server = Server.find(params[:id]) end - def check_perms - unless (signed_in? and current_user.in_group?(:admin)) - respond_to do |format| - format.html { render action: 'permission_denied', status: :forbidden } - format.json { render json: "Permission denied", status: :forbidden } - end - end - end - # Never trust parameters from the scary internet, only allow the white list through. def server_params params[:server] |