Last active
June 16, 2017 23:16
-
-
Save EliJDonahue/2262844fa30cb3b2bf201c3034e5afd2 to your computer and use it in GitHub Desktop.
Sample code to append to aras_labs_hide_tabs.js
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
| 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