Created
November 6, 2016 17:37
-
-
Save hakant/7c25b55660deffb5556df2357ab5708b 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
| "use strict"; | |
| import * as _ from 'underscore'; | |
| import * as nconf from 'nconf'; | |
| const businessRules = nconf.get("BusinessRules"); | |
| let admins = businessRules.Administrators; | |
| export default class AdminRepository implements IAdminRepository { | |
| IsUserAdmin(username){ | |
| return _.contains(admins, username); | |
| } | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment