-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Description
Hello,
I see in the documentation for custom strategies that can only check features if we have the user's session. The problem with that is that the current user is not always obtain the same way in different parts of a application (API token, sso, session) and I would like to have an option to pass the current_user object directly like:
def enabled?(feature, current_user)
current_user.enabled_features[feature]
endHow could do it do something like this possible?
Metadata
Metadata
Assignees
Labels
No labels