Displaying 4 results from an estimated 4 matches for "permissioncontroller".
Did you mean:
permission_controller
2009 May 20
1
[PATCH server] don't add nil key to failures hash for PartialSuccessError handling.
...d
end
unless failures.empty?
diff --git a/src/app/controllers/permission_controller.rb b/src/app/controllers/permission_controller.rb
index 9a62c62..da5286b 100644
--- a/src/app/controllers/permission_controller.rb
+++ b/src/app/controllers/permission_controller.rb
@@ -51,7 +51,7 @@ class PermissionController < ApplicationController
successes << @permission
# PermissionError and ActionError are expected
rescue Exception => ex
- failures[@permission.nil? permission_id : @permission] = ex.message
+ failures[@permission.nil? ? permission_id : @permission] =...
2006 May 16
3
UserEngine and hiding controllers
...ws included in the engines. Is it
sufficient to create an /app/views/user directory and put the new rhtml
files there? Has it got any drawbacks?
3. How can I "hide" a controller without accessing its source code? That
is to say I do not want people to mess with the RoleController and
PermissionController. I kind of need to make them not accessible.
Their functionality will be available from Admin::RoleController <
RoleController, or something like this.
I do not want to edit their code, since when my hosting upgrades to
Rails 1.1 I may want to upgrade the engines too, and since it is
someth...
2009 Jun 16
1
[PATCH server] Fix errors in controller tests.
...on Guiditta <jguiditt at redhat.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -23,7 +24,7 @@ require 'permission_controller'
# Re-raise errors caught by the controller.
class PermissionController; def rescue_action(e) raise e end; end
-class PermissionControllerTest < Test::Unit::TestCase
+class PermissionControllerTest < ActionController::TestCase
fixtures :privileges, :roles, :permissions, :pools
def setup
diff --git a/src/test/functional/quota_controller_test.rb b/src/tes...
2009 May 15
0
[PATCH server] final cleanup for service layer refactoring.
...def tmp_authorize_admin
- end
-
end
diff --git a/src/app/controllers/permission_controller.rb b/src/app/controllers/permission_controller.rb
index 55e7942..4447e2b 100644
--- a/src/app/controllers/permission_controller.rb
+++ b/src/app/controllers/permission_controller.rb
@@ -91,11 +91,4 @@ class PermissionController < ApplicationController
alert = svc_destroy(params[:id])
render :json => { :object => "vm", :success => true, :alert => alert }
end
-
- # FIXME: remove these when service transition is complete. these are here
- # to keep from running permissions checks and...