<%_ if (position === 'import') { _%>

<%_ } _%>
<%_ if (position === 'method') { _%>

    /**
     * {@code GET  /current-user} : get all the viewPermissions of currentUser.
     *
     * @return the {@link ResponseEntity} with status {@code 200 (OK)} and the list of viewPermissions in body.
     */
    @GetMapping("/current-user")
    public ResponseEntity<List<ViewPermissionDTO>> getAllViewPermissionsByLogin() {
        log.debug("REST request to get ViewPermissions by current-user");
        return ResponseEntity.ok().body(viewPermissionService.getAllByLogin());
    }
<%_ } _%>
