Support > Repository > Function > Authority
ja | en

We introduce two functions concerning privilege processing.

HASMODELPERMISSION (authority name, model name (English))

If the user has the authority specified by the argumenttrue.Otherwisefalse.

HASMODELPERMISSION("perm_boss", "staff")

HASPRINCIPAL (principal name)

If the user has a principal of the argumenttrue. Otherwisefalse.

The HASPRINCIPAL function always returns true when logging on with administrator privileges.