Created
June 16, 2016 17:28
-
-
Save micmmakarov/d73fafdcbbf627d0c0ec449cea0bde0f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scoped_key = Keen::ScopedKey.new('KEEN_MASTER_KEY', allowed_operations: ["read"], filters: [{ # master_key should be a variable that contains your Keen master key | |
'property_name' => 'company.id', | |
'operator' => 'eq', | |
'property_value' => current_company.id # current_user.id should be a variable that contains the customer ID | |
}]).encrypt! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment