summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/servers_controller.rb9
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]