Replace p:ifGranted, p:remoteUser and p:userPrincipal in EL

Proprietary

Replace the EL functions p:ifGranted(role), p:remoteUser() and p:userPrincipal(), which PrimeFaces 16 no longer declares, so a page using them fails, with the facesContext.externalContext calls they made. p:ifAllGranted, p:ifAnyGranted and p:ifNoneGranted have no such counterpart and are left alone.

io.moderne.java.primefaces.ReplaceRemovedSecurityFunctions
mod run . --recipe=io.moderne.java.primefaces.ReplaceRemovedSecurityFunctions

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.