Skip to content

Commit

Permalink
Drop trigger_workflow toggle checks
Browse files Browse the repository at this point in the history
  • Loading branch information
saraycp committed Feb 14, 2023
1 parent 72c3b94 commit 4b1fe11
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
4 changes: 0 additions & 4 deletions src/api/app/controllers/person/token_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ def index

# POST /person/<login>/token
def create
# TODO: remove when `trigger_workflow` feature is rolled out
raise(NoPermission, 'You are not allowed to create a workflow token. You need to join the Beta program for that.') if params[:operation] == 'workflow' &&
!Flipper.enabled?(:trigger_workflow, @user)

authorize @user, :update?

pkg = (Package.get_by_project_and_name(params[:project], params[:package]) if params[:project] || params[:package])
Expand Down
3 changes: 1 addition & 2 deletions src/api/app/views/webui/user/_index_actions.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@
- if configuration.passwords_changable?(user)
= render partial: 'webui/user/index_actions/change_password'
= render partial: 'webui/user/index_actions/change_notifications'
- if feature_enabled?('trigger_workflow')
= render partial: 'webui/user/index_actions/manage_tokens'
= render partial: 'webui/user/index_actions/manage_tokens'
= render partial: 'webui/user/index_actions/manage_beta_features'

0 comments on commit 4b1fe11

Please sign in to comment.