Skip to content

Instantly share code, notes, and snippets.

@EliJDonahue
Last active June 16, 2017 23:16
Show Gist options
  • Select an option

  • Save EliJDonahue/2262844fa30cb3b2bf201c3034e5afd2 to your computer and use it in GitHub Desktop.

Select an option

Save EliJDonahue/2262844fa30cb3b2bf201c3034e5afd2 to your computer and use it in GitHub Desktop.
Sample code to append to aras_labs_hide_tabs.js
var userIsSpecial = function(item) {
var userID = aras.getUserID();
// user is special if they are the creator
if (userID == item.getProperty("created_by_id",""))
return true;
return false;
};
if (!userIsSpecial(document.thisItem))
{
//Call hideTabs function
setTimeout(hideTabs, 50);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment