docs: public static boolean hasPermission(final String permission) {
          final SecurityContext context = SecurityContextHolder.getContext();
          if (context != null) {
              final Authentication authentication = context.getAuthentication();
              if (authentication != null) {
                  for (final GrantedAuthority authority : authentication.getAuthorities()) {
                      if (authority.getAuthority().equals(permission)) {
                          return true;
                      }
                  }
              }
          }
          return false;
      }