SYNOPSIS
  nomask int check_permission ( string | object          prot
                              , void | int | objectmixed skip)

DESCRIPTION
  Check if the current effective permission agains the given protection
  <prot>. If <prot> is an object, its permissions are used.
  <skip> denotes the objects from which to start the computation
  of the effective permission: either as the object itself, or by
  its number in the call chain.

  Result is non-zero if the check succeeds, i.e. the action is allowed.

SEE ALSO
  security(C), cmp_perm(sefun), eff_perm(sefun), get_permission(sefun),
  get_protection(sefun), prot2domain(sefun)

