radiant-group_forum-extension 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.0
1
+ 0.6.1
@@ -1,5 +1,5 @@
1
1
  class GroupForumExtension < Radiant::Extension
2
- version "0.6.0"
2
+ version "0.6.1"
3
3
  description "Just a bit of access-control glue joining reader_groups to forum"
4
4
  url "http://spanner.org/radiant/group_forums"
5
5
 
@@ -11,9 +11,10 @@ module GroupedPost
11
11
  conditions = reader.nil? ? "pp.group_id IS NULL" : ["pp.group_id IS NULL OR pp.group_id IN(#{ids.map{"?"}.join(',')})", *ids]
12
12
  end
13
13
  {
14
- :joins => "INNER JOIN topics on posts.topic_id = topics.id INNER JOIN forums on topics.forum_id = forums.id LEFT OUTER JOIN permissions as pp on pp.permitted_id = forums.id AND pp.permitted_type = 'Forum'",
14
+ :joins => "LEFT OUTER JOIN topics on posts.topic_id = topics.id LEFT OUTER JOIN forums on topics.forum_id = forums.id LEFT OUTER JOIN permissions as pp on pp.permitted_id = forums.id AND pp.permitted_type = 'Forum'",
15
15
  :group => column_names.map { |n| self.table_name + '.' + n }.join(','),
16
- :conditions => conditions
16
+ :conditions => conditions,
17
+ :readonly => false
17
18
  }
18
19
  } do
19
20
  def count
@@ -13,7 +13,8 @@ module GroupedTopic
13
13
  {
14
14
  :joins => "INNER JOIN forums on topics.forum_id = forums.id LEFT OUTER JOIN permissions as pp on pp.permitted_id = forums.id AND pp.permitted_type = 'Forum'",
15
15
  :group => column_names.map { |n| self.table_name + '.' + n }.join(','),
16
- :conditions => conditions
16
+ :conditions => conditions,
17
+ :readonly => false
17
18
  }
18
19
  } do
19
20
  def count
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{radiant-group_forum-extension}
8
- s.version = "0.6.0"
8
+ s.version = "0.6.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["spanner"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: radiant-group_forum-extension
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7
4
+ hash: 5
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 0
10
- version: 0.6.0
9
+ - 1
10
+ version: 0.6.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - spanner