Issue Feature Closed

#84622ViewHelper f:be.security.ifIsAdmin

Josef Glatz 04/05/18, 08:38 updated 03/02/20, 16:27

Description

Description

As an integrator it’s often useful to have a VH to check if the current backend user is an admin or not.

I personally use this mostly for backend previews of content elements in the page module.

ToDo(s)

Introduce a new f:be:security related ViewHelper
  • next to existing ViewHelpers: IfAuthenticated and IfHasRole
  • with name IfIsAdmin.

Acceptance Criteria

  • Introduce new VH
  • Add unit test for new security related VH
  • Add Feature RsT

Reviews 1