Skip to content

Instantly share code, notes, and snippets.

@skipjac
Created March 20, 2013 19:01
Show Gist options
  • Save skipjac/5207450 to your computer and use it in GitHub Desktop.
Save skipjac/5207450 to your computer and use it in GitHub Desktop.
hide submit a request based on user tags in zendesk
.tab_new {
display: none;
}
var listOfAllowedTags = ['test', 'test1', 'test3'];
var list = _.intersect(listOfAllowedTags, currentUser.tags);
var isAllowed = (list.length > 0) ? true : false;
if (isAllowed) {
jQuery('.tab_new').show()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment