Custom Settings Example

Top  Previous  Next

 

In the following example, macros and file transfer options are restricted for all users. Unauthenticated users will have the same restrictions in defined inside permissions and, additionally, the ones defined inside anonymous. The ConnParams settings are commented.

 

var customSettings = {

  /*

  "connParams": {

     "forceAjax": true

  }

 ,*/

 "permissions": {
     // overrides permission settings for all users
     "macros"false,
     "fileTransfer"false,
     // overrides permission settings for anonymous users
     "anonymous": {
         "settings"false,
         "printScreen"false,
         "keypads"false
     }
 }
};

 

Read more:

The customSettings configuration object
Changing permissions by using customSettings