diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2014-03-03 09:46:27 +0100 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2014-03-03 10:02:45 +0100 |
commit | c99286acc191a85ec967ead9a2530e0387855fcd (patch) | |
tree | ea12dc382feb9e7f16b3d537c755ef4ffa1dcec3 /sonar-server | |
parent | b43b1b849ea20bdaabed2e4655a9a0213b6570f8 (diff) | |
download | sonarqube-c99286acc191a85ec967ead9a2530e0387855fcd.tar.gz sonarqube-c99286acc191a85ec967ead9a2530e0387855fcd.zip |
Support edit permissions for each saved issue filter
Diffstat (limited to 'sonar-server')
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/views/issues/templates/_header.hbs.erb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/issues/templates/_header.hbs.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/issues/templates/_header.hbs.erb index bf8043f5ae2..73642686161 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/issues/templates/_header.hbs.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/issues/templates/_header.hbs.erb @@ -5,10 +5,14 @@ <button id="issues-new-search"><%= message ('issue_filter.new_search') -%></button> {{#if appState.canManageFilters}} - {{#if canSave}}<button id="issues-filter-save"><%= message('save') -%></button>{{/if}} + {{#if canModify}} + {{#if canSave}}<button id="issues-filter-save"><%= message('save') -%></button>{{/if}} + {{/if}} {{#unless id}}<button id="issues-filter-save-as"><%= message('save_as') -%></button>{{/unless}} {{#if id}}<button id="issues-filter-copy"><%= message('copy') -%></button>{{/if}} - {{#if id}}<button id="issues-filter-edit"><%= message('edit') -%></button>{{/if}} + {{#if canModify}} + {{#if id}}<button id="issues-filter-edit"><%= message('edit') -%></button>{{/if}} + {{/if}} {{/if}} </div> |