Closed rsutphin closed 13 years ago
Allow User#permit? to be used in applications that use affiliate-constrained groups by supporting an :affiliate_ids option for permit?. Ex:
User#permit?
:affiliate_ids
permit?
env['aker.check'].user.permit?(:Admin, :affiliate_ids => [3, 18]) do puts "You are an admin from one of the good affiliates. Good for you." end
Allow
User#permit?
to be used in applications that use affiliate-constrained groups by supporting an:affiliate_ids
option forpermit?
. Ex: