lib/lockdown/configuration.rb in lockdown-2.0.6 vs lib/lockdown/configuration.rb in lockdown-2.0.7
- old
+ new
@@ -168,10 +168,10 @@
end
# @return [Regex]
def access_rights_for_user(user)
return unless user
- return Lockdown::Resource.regex if administrator?(user)
+ return Lockdown::Resource.all_access if administrator?(user)
user_groups = user.send(Lockdown.user_groups_hbtm_reference)
permission_names = []