Changeset 728
- Timestamp:
- 11/16/07 14:18:31 (1 year ago)
- Files:
-
- trunk/app/models/protected_data.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/app/models/protected_data.rb
r721 r728 152 152 # See sub-classes for examples how this method can be used. 153 153 def ProtectedData.common_count_authorized_to(connection_model, asset_model_id_sql, operation, conditions = nil) 154 return self.count( conditions) unless Setting.enable_user_permissions154 return self.count(:all, :conditions => conditions) unless Setting.enable_user_permissions 155 155 156 156 return 0 unless user = UserAccount.current_user