[Ovirt-devel] [PATCH server] fix for Bug 464396 - There are two ovirtadmin User displayed in the User Access of the Smart Pool

Scott Seago sseago at redhat.com
Tue May 26 19:14:44 UTC 2009


For inherited permissions, show which pool the user inherits access from.

Signed-off-by: Scott Seago <sseago at redhat.com>
---
 src/app/models/permission.rb |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/app/models/permission.rb b/src/app/models/permission.rb
index f74a11a..6adf16a 100644
--- a/src/app/models/permission.rb
+++ b/src/app/models/permission.rb
@@ -45,7 +45,7 @@ class Permission < ActiveRecord::Base
     !is_primary?
   end
   def source
-    is_primary? ? "Direct" : "Inherited"
+    is_primary? ? "(Direct)" : parent_permission.pool.name
   end
   def grid_id
     id.to_s + "_" + (is_primary? ? "1" : "0")
-- 
1.6.0.6




More information about the ovirt-devel mailing list