Skip to content

Commit

Permalink
fix bug from merge
Browse files Browse the repository at this point in the history
Signed-off-by: Vanessa Fotso <[email protected]>
  • Loading branch information
vanessuniq committed Jul 17, 2023
1 parent 36c5cbb commit dfbe7e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/projects_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def project_params
)
end

def check_permission_to_update_slackchannel
def check_permission_to_update
condition = (project_params[:project_metadata_attributes]&.dig('data')&.dig('Slack Channel ID').present? ||
project_params[:visibility].present?)
authorize_admin_project if condition
Expand Down

0 comments on commit dfbe7e0

Please sign in to comment.