Skip to content

Commit

Permalink
Redirect admin to dashboard after invitation accept
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomaszabc committed Dec 29, 2023
1 parent 1f91127 commit 28a84fd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/controllers/organizations/invitations_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,8 @@ def user_params
.permit(:first_name, :last_name, :email,
staff_account_attributes: [:roles])
end

def after_accept_path_for(_resource)
dashboard_index_path
end
end

0 comments on commit 28a84fd

Please sign in to comment.