# Method Pike.Security.call_with_creds()

Method call_with_creds

  ``mixed` call_with_creds(`Creds` `creds`, `mixed` `func`, `mixed` ... `args`)`

Description

  Call with credentials.

  Sets the current credentials to `creds`, and calls `<code class='reference paramref'>func`(@<code class='reference paramref'>args). If `creds` is `0` (zero), the credentials from the current object will be used.

Note

  The current creds or the current object must have the allow bit BIT_SECURITY set to allow calling with `creds` other than `0` (zero).