Skip to content

Instantly share code, notes, and snippets.

@hakant
Created November 6, 2016 17:37
Show Gist options
  • Select an option

  • Save hakant/7c25b55660deffb5556df2357ab5708b to your computer and use it in GitHub Desktop.

Select an option

Save hakant/7c25b55660deffb5556df2357ab5708b to your computer and use it in GitHub Desktop.
"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