allow account admins to modify slack api token
fixes COMMS-2406 Test Plan: - As an account admin go to the accounts settings page - notice you see the input field for "Slack Api Token" Change-Id: I31fcb5730e8a02168ee7b61e06650e49fc8ec420 Reviewed-on: https://gerrit.instructure.com/208042 Tested-by: Jenkins Reviewed-by: Landon Gilbert-Bland <lbland@instructure.com> QA-Review: Steven Burnett <sburnett@instructure.com> Product-Review: Steven Burnett <sburnett@instructure.com>
This commit is contained in:
parent
7d59ccaf76
commit
5a17f0034d
|
@ -312,7 +312,7 @@
|
|||
|
||||
<%= render partial: 'additional_settings', locals: { f: f } %>
|
||||
|
||||
<% if !@account.site_admin? && @account.root_account? && @account.grants_right?(@current_user, :manage_site_settings) && @account.feature_enabled?(:slack_notifications)%>
|
||||
<% if !@account.site_admin? && @account.root_account? && @account.feature_enabled?(:slack_notifications)%>
|
||||
<% slack_api_key = @account.root_account.settings[:encrypted_slack_key] ? Canvas::Security.decrypt_password(@account.root_account.settings[:encrypted_slack_key], @account.root_account.settings[:encrypted_slack_key_salt], 'instructure_slack_encrypted_key') : '' %>
|
||||
<fieldset>
|
||||
<legend><%= t("Slack Api Key") %></legend>
|
||||
|
|
Loading…
Reference in New Issue