Closed vittorius closed 8 years ago
can :manage
is only a shortcut right now, it doesn't work with other attributes or inside an array, but this is worth improving so your examples can work, too :)
role :admin, proc { |user| user.admin? } do
can :manage, Merchant # can? :read @merchant is OK
can :edit, Merchant # can? :edit @merchant is OK
end
OK, will take into account. I'm your beta tester for today :smile:
Yeah, see this: https://github.com/chaps-io/access-granted/blob/master/lib/access-granted/role.rb#L71-L75
So when you provide other permissions in separate can
calls it will work :)
OK, will take into account. I'm your beta tester for today :smile:
I appreciate that! :D
Hey there. I've spotted a couple of cases where behavior doesn't seem logical:
:question: :question: :question: