lockdown 0.3.9 → 0.3.10

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,6 @@
1
+ == 0.3.10 2008-05-01
2
+ * Fixed: users_controller management of user_groups was using outdated methods. this applies only to the stubs produced with the generator
3
+
1
4
  == 0.3.9 2008-05-01
2
5
  * Modify: changed controller_classes from array to hash to speed up access
3
6
 
@@ -2,7 +2,7 @@ module Lockdown #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 3
5
- TINY = 9
5
+ TINY = 10
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -109,7 +109,7 @@ class UsersController < ApplicationController
109
109
  #
110
110
  @user.user_groups.dup.each do |g|
111
111
  #Don't remove the automatically assigned user groups
112
- next if g.system_assigned?
112
+ next if Lockdown::System.has_user_group?(g)
113
113
  @user.user_groups.delete(g) unless new_ug_ids.include?(g.id)
114
114
  end
115
115
  #
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lockdown
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.9
4
+ version: 0.3.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Stone