Last active
November 24, 2019 07:11
-
-
Save conanak99/07d6366b96d11d5d53a56a20247fb1da 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
isFlagEnable(flagName) { | |
// Lấy tên, email của người dùng hiện tại | |
const currentUser = userService.getCurrentUser(); | |
// Kiểm tra xem người dùng hiện tại | |
// có được dùng chức năng có tên "flagName" không | |
const flagEnable = flagService.getFlag(flagName, currentUser) | |
return flagEnable | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment