       { permission   : 'update credential', validateWith: Validators.own }
       {
         permission   : 'update credential'
-        validateWith : Validators.group.resource mode: 'w'
+        validateWith : Validators.group.resource { mode: 'w' }
       }
       { permission   : 'modify credential', superadmin: yes }
     ]

      { permission   : 'update credential', validateWith: Validators.own }
      {
        permission   : 'update credential'
        validateWith : Validators.group.resource mode: 'w'
      }
      { permission   : 'modify credential', superadmin: yes }
    ]

      { permission   : 'update credential', validateWith: Validators.own }
      {
        permission   : 'update credential'
        validateWith : Validators.group.resource { mode: 'w' }
      }
      { permission   : 'modify credential', superadmin: yes }
    ]
