Section One BBS

Welcome, Guest.


Subject: Security Level Menu Date: Tue May 31 2022 08:32 am
From: Nightfox To: DesotoFireflite

  Re: Security Level Menu
  By: DesotoFireflite to All on Tue May 31 2022 07:49 am

 De> Sorry in advance for such a stupid question, but I can't find the answer
 De> anywhere. 

 De> Can I have a Security Level Specific Menu. I want to have a special main
 De> menu for users that I have to flag for security infractions, Level 20,
 De> that they alone will see. Is this possable. I know I can restrict menu
 De> commands on the main menu by using Ctrl-A codes by security level, but I
 De> prefer just making a special menu for this. Thanks in advance. 

In your command shell, you should be able to check the user's security and then 
show a different menu for each.

In JavaScript, you could do something like this:
if (user.compare_ars("LEVEL 50"))
{
   bbs.menu("menu_50");
   // Allow level 50 stuff
}
else if (user.compare_ars("LEVEL 20"))
{
   bbs.menu("menu_20");
   // Allow level 20 stuff
}

Nightfox

---
 ■ Synchronet ■ Digital Distortion: digitaldistortionbbs.com

Previous Message       Next Message
In Reply To: Security Level Menu (DesotoFireflite)
Replies: Security Level Menu (DesotoFireflite)