EppO/rolify — Issue #13: support for selective role query
Author: EppO
Created: 2011-10-12 17:25:17+00:00
State: open
Labels: feature requests

Currently, when the ``user.has_role "moderator", Forum.first``, this query returns false:

user.has_role? "moderator"
# => false

That's because we ask for a global role and the user has only a scoped role.
It would be nice to be able to ask if a user has a role no matter the scope is. For example to query if the user is at least a moderator of one Forum without necessarily be a global moderator.

For example, this would returns true

user.has_role? "moderator", :any