Commit Graph
8 Commits
Author SHA1 Message Date
Sokolov Yura 12037d7f43 should not allow to can? when raw sql without block is present 2010-10-05 02:01:48 +08:00
Sokolov Yura ebef3cc745 consistency addition for ability check on Module 2010-09-21 00:16:36 +08:00
Sokolov Yura 7e0e72276e add specs to sql conditions by not Hash 2010-09-17 06:57:26 +08:00
Sokolov Yura ff9a91705b add specs for module definitions 2010-09-17 06:57:25 +08:00
Sokolov Yura a0f73fe0f7 fix error 2010-09-17 06:57:25 +08:00
Sokolov Yura e2c341b8d3 allow to check ability by common module 2010-09-17 06:57:24 +08:00
Sokolov Yura f236b1b5a4 resolve issue 149 2010-09-17 06:57:24 +08:00
Sokolov Yura 7d7d249182 passing throw matching rules with not matching conditions
Main goal is to allow:

cannot :manage, :all
can :read, :all
can :manage, User, :id=>user.id
can :manage, User, :manager_id=>user.id

Signed-off-by: Sokolov Yura <funny.falcon@gmail.com>
2010-05-16 22:13:02 +04:00