Add a fetch tag dialog

This commit is contained in:
Joseph Schorr 2015-03-19 15:08:18 -04:00
parent c1d58bdd6c
commit 70aec00914
13 changed files with 258 additions and 2 deletions

View file

@ -83,6 +83,10 @@ function(ApiService, CookieService, $rootScope, Config) {
});
};
userService.isOrganization = function(name) {
return !!userService.getOrganization(name);
};
userService.getOrganization = function(name) {
if (!userResponse || !userResponse.organizations) { return null; }
for (var i = 0; i < userResponse.organizations.length; ++i) {