daily pastebin goal
61%
SHARE
TWEET

Untitled

a guest Dec 16th, 2018 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var limitToUser="DaveSnowden,AdrienneMoulian";
  2.         var currentUser="DaveSnowden";
  3.         limitToUser=limitToUser.toLowerCase();
  4.         currentUser=currentUser.toLowerCase();
  5.        
  6.         limitToUser = limitToUser.split(",");
  7.        
  8.         var i=0;
  9.         var limitToUserLength = limitToUser.length;
  10.        
  11.         for (i=0;i<=limitToUserLength;i++){
  12.            
  13.            
  14.             if(limitToUser[i-1] != "" && limitToUser[i-1] != currentUser){
  15.  
  16.            
  17.                 console.log('no match');
  18.                
  19.                 $("#documents-login").hide();
  20.                 $("#documents-terms").hide();
  21.                 $("#documents").hide();
  22.                 $("#documents-limited-access").show();
  23.                
  24.             }
  25.        
  26.         }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top