Commit c74f9110 authored by Coung Ngo's avatar Coung Ngo

Hide "Import from Jira" option from non-entitled users

The "Import from Jira" option was visible to all users which
was incorrect as only entitled users are able to import from Jira.
parent 42893446
- type = local_assigns.fetch(:type, :icon)
- can_edit = can?(current_user, :admin_project, @project)
.dropdown.btn-group
%button.btn.rounded-right.text-center{ class: ('has-tooltip' if type == :icon), title: (_('Import issues') if type == :icon),
......@@ -9,6 +10,7 @@
= _('Import issues')
%ul.dropdown-menu
%li
%button.btn{ data: { toggle: 'modal', target: '.issues-import-modal' } }
%button{ data: { toggle: 'modal', target: '.issues-import-modal' } }
= _('Import CSV')
%li= link_to _('Import from Jira'), project_import_jira_path(@project)
- if can_edit
%li= link_to _('Import from Jira'), project_import_jira_path(@project)
---
title: Hide "Import from Jira" option from non-entitled users
merge_request: 32685
author:
type: fixed
......@@ -49,6 +49,7 @@ Importing large projects may take several minutes depending on the size of the i
1. On the **{issues}** **Issues** page, click the **Import Issues** (**{import}**) button.
1. Select **Import from Jira**.
This option is only visible if you have the [correct permissions](#permissions).
![Import issues from Jira button](img/jira/import_issues_from_jira_button_v12_10.png)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment