$hasUserAccess

Examines if the named accesses are granted for the current user.
Syntax
    $hasUserAccess{access_name_1}{access_name_2} ... {access_name_n}
DocumentationExamines if the named accesses are granted for the current user:

    Parameters:
      access_name_1 through access_name_n, the accesses to examine if granted for the current user.
      Valid access names are:
        - ACCESS_CREATE
        - ACCESS_DELETE
        - ACCESS_READ
        - ACCESS_UPDATE
        - ACCESS_VISIBLE
        - ACCESS_DATABASE_CREATE
        - ACCESS_DATABASE_REMOVE
        - ACCESS_DATABASE_READ
        - ACCESS_DATABASE_UPDATE
        - ACCESS_ALL
    Returns:
      1 if and only if all of the named accesses are granted for the current user; 0 otherwise.
Examples
Example 1:
    $hasUserAccess{ACCESS_READ}

    Result 1: if the current user has the access right "ACCESS READ": 1
    if the current user does not have the access right "ACCESS READ": 0
Example 2:
    $switchUser{Jack1}{secret}
      {
      $if{$hasUserAccess {ACCESS_CREATE}{ACCESS_MODIFY}}
        {<A HREF="abc.html">create abc</A>}
          {<A HREF="login.html">login to get create access</A>}
      }
    Result 2:
    if the user "Jack1" has access right to create and to modify: create abc (hyperlink)
    if the user "Jack1" does not have the access right to create and to modify: login to get create access (hyperlink)
GroupSecurity
Minimum required transaction-mode:READ
Required scripting permission of the developerPERMISSION_FL_BASIC
Minimum parameters1
Maximum parameters <unlimited>