radiant-reader_group-extension 1.2.3 → 1.2.4

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -8,7 +8,7 @@ begin
8
8
  gem.homepage = "http://github.com/spanner/radiant-reader_group-extension"
9
9
  gem.authors = ["spanner"]
10
10
  gem.add_dependency "radiant", ">= 0.9.0"
11
- gem.add_dependency 'radiant-reader-extension'
11
+ gem.add_dependency 'radiant-reader-extension', ">= 1.2.0"
12
12
  end
13
13
  rescue LoadError
14
14
  puts "Jeweler (or a dependency) not available. This is only required if you plan to package reader_group as a gem."
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.3
1
+ 1.2.4
data/lib/grouped_model.rb CHANGED
@@ -45,7 +45,8 @@ module GroupedModel
45
45
  {
46
46
  :joins => "LEFT OUTER JOIN permissions as pp on pp.permitted_id = #{self.table_name}.id AND pp.permitted_type = '#{self.to_s}'",
47
47
  :group => column_names.map { |n| self.table_name + '.' + n }.join(','),
48
- :conditions => conditions
48
+ :conditions => conditions,
49
+ :readonly => false
49
50
  }
50
51
  }
51
52
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{radiant-reader_group-extension}
8
- s.version = "1.2.3"
8
+ s.version = "1.2.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["spanner"]
@@ -118,14 +118,14 @@ Gem::Specification.new do |s|
118
118
 
119
119
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
120
120
  s.add_runtime_dependency(%q<radiant>, [">= 0.9.0"])
121
- s.add_runtime_dependency(%q<radiant-reader-extension>, [">= 0"])
121
+ s.add_runtime_dependency(%q<radiant-reader-extension>, [">= 1.2.0"])
122
122
  else
123
123
  s.add_dependency(%q<radiant>, [">= 0.9.0"])
124
- s.add_dependency(%q<radiant-reader-extension>, [">= 0"])
124
+ s.add_dependency(%q<radiant-reader-extension>, [">= 1.2.0"])
125
125
  end
126
126
  else
127
127
  s.add_dependency(%q<radiant>, [">= 0.9.0"])
128
- s.add_dependency(%q<radiant-reader-extension>, [">= 0"])
128
+ s.add_dependency(%q<radiant-reader-extension>, [">= 1.2.0"])
129
129
  end
130
130
  end
131
131
 
@@ -10,7 +10,7 @@ module ReaderGroup
10
10
  end
11
11
 
12
12
  class ReaderGroupExtension < Radiant::Extension
13
- version "1.2.3"
13
+ version "1.2.4"
14
14
  description "Page (and other) access control for site readers and groups"
15
15
  url "http://spanner.org/radiant/reader_group"
16
16
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: radiant-reader_group-extension
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 23
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 2
9
- - 3
10
- version: 1.2.3
9
+ - 4
10
+ version: 1.2.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - spanner
@@ -42,10 +42,12 @@ dependencies:
42
42
  requirements:
43
43
  - - ">="
44
44
  - !ruby/object:Gem::Version
45
- hash: 3
45
+ hash: 31
46
46
  segments:
47
+ - 1
48
+ - 2
47
49
  - 0
48
- version: "0"
50
+ version: 1.2.0
49
51
  type: :runtime
50
52
  version_requirements: *id002
51
53
  description: Adds group-based page access control to radiant.