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
     }
 }

 "mobile": {

        "disableClipboard"false,

        "keyboardPressDetection"500,

        "clipboardPressDetection"1000,

    } 
};

 

 

Read More:

The customSettings Configuration Object
Changing Permissions by Using customSettings