permission.js 256 B

1234567
  1. console.log("User Permission Checking");
  2. var permissionGroup = getUserPermissionGroup();
  3. if (userIsAdmin() == true){
  4. sendResp("This user is admin with group = " + permissionGroup);
  5. }else{
  6. sendResp("This user not admin with group = " + permissionGroup);
  7. }