lib/qooxview/helpers/permission.rb in qooxview-1.9.11 vs lib/qooxview/helpers/permission.rb in qooxview-1.9.13.pre.10

- old
+ new

@@ -80,17 +80,18 @@ self.can_view( permission, view ) end def self.can_view( permission, view ) + # dputs_func action = view.to_s.gsub( /^View\./, '' ) dputs( 4 ){ "Does #{permission.inspect} allow to do #{action} knowing #{@@view.inspect} and #{@@parent.inspect}" } if not permission or permission.length == 0 permission = %w( default ) end permission.to_a.each{|p| - perm_list = self.getViewParent( p ) + perm_list = self.getViewParent( p.to_s ) dputs( 5 ){ "p is #{p} and perm_list is #{perm_list.inspect}" } perm_list.each{|pl| type, data = pl.split(':') dputs( 5 ){ "view = #{type} and data = #{data}" } case type