DigiD CurrentLevel and RedirectToLogin Example

This example checks the required digidaccess content access level of the current item (security.contentaccess.getaccesslevel()) and when this is below the current level (digid.currentlevel()), the user is redirected to the item with code DIGID_LOGIN (digid.redirecttologin()).

Smartsite SXML CopyCode image Copy Code
{sys.iif(security.contentaccess.getaccesslevel('digidaccess') GT digid.currentlevel(false),
       digid.redirecttologin(DIGID_LOGIN)
)}