Changeset 728

Show
Ignore:
Timestamp:
11/16/07 14:18:31 (1 year ago)
Author:
markku
Message:

Closes #504

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/app/models/protected_data.rb

    r721 r728  
    152152  # See sub-classes for examples how this method can be used. 
    153153  def ProtectedData.common_count_authorized_to(connection_model, asset_model_id_sql, operation, conditions = nil) 
    154     return self.count(conditions) unless Setting.enable_user_permissions 
     154    return self.count(:all, :conditions => conditions) unless Setting.enable_user_permissions 
    155155 
    156156    return 0 unless user = UserAccount.current_user 

© 2004-2007 Norfello Oy All Rights Reserved