code: public void checkPermissions(CmsObject cms) throws CmsRoleViolationException {
  
          OpenCms.getRoleManager().checkRole(cms, CmsRole.ELEMENT_AUTHOR);
      }
docs: Checks the permissions of the current user to match the required security level.<p>
  
  Note that the current request and response are not available yet.<p>
  
  Override if needed.<p>
  
  @param cms the current cms object
  
  @throws CmsRoleViolationException if the security level can not be satisfied