we're facing another small problem.
If a user does not have any role, then the permissions for every role
are applied to it.
Based on the code in cantango/filters/filter.rb (see below), this
seems to be on purpose - is that true? What's the reason for it?
def in_include_list?
return true if include_list.empty?
include_list.include? item
end
Best regards
Eric
Kris
One of you forks cantango:master on his own github account, then have everyone in the project reference this fork via the :git option on the gem
gem 'cantering', :git => 'git://github.com/betasheet/cantango'
Now any changes you make, bugs you fix etc. push these to the fork. Then give me a pull-request from github so I can merge those improvements!
Thanks :)
Kris
On Nov 24, 2011, at 3:26 PM, betasheet wrote:
On Nov 24, 2011, at 3:26 PM, betasheet wrote:
Eric
Best regards
Eric
I hope you can make it work! I'm working hard in order to release a new CanTango v.1.0 which has 95% spec coverage which should make it much easier to work with and extend. The role filters is actually not very useful, since you already have the ability via config.permits to disable specific permits of a certain type. Good luck!
Kris