AutomationWizard

Untitled

Mar 23rd, 2025
963
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 0.21 KB | Cybersecurity | 0 0
  1. if ($input.first().json.message.from.id !== YOUR_USER_ID_HERE) { // Replace with your actual ID
  2.   return {unauthorized: true};
  3. } else {
  4.   // Return the original data when authorized
  5.   return $input.all();
  6. }
  7.  
Advertisement
Comments
  • Enik06
    163 days
    # text 0.21 KB | 0 0
    1. if ($input.first().json.message.from.id !== YOUR_USER_ID_HERE) { // Replace with your actual ID
    2. return {unauthorized: true};
    3. } else {
    4. // Return the original data when authorized
    5. return $input.all();
    6. }
    7.  
Add Comment
Please, Sign In to add comment