app/models/enju_library/ability.rb in enju_library-0.1.0.pre30 vs app/models/enju_library/ability.rb in enju_library-0.1.0.pre31
- old
+ new
@@ -26,10 +26,10 @@
]
can :update, [
LibraryGroup,
RequestStatusType,
RequestType
- ] if LibraryGroup.site_config.network_access_allowed?(ip_address)
+ ] if LibraryGroup.site_config.network_access_allowed?(ip_address, :network_type => :admin)
can :read, [
LibraryGroup,
RequestStatusType,
RequestType
]