Skip to content

Commit

Permalink
require users that are at least admins for settings
Browse files Browse the repository at this point in the history
  • Loading branch information
fermion committed Jan 15, 2024
1 parent 6331d69 commit 6c83666
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/controllers/settings/billing_information_controller.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
class Settings::BillingInformationController < ApplicationController
before_action :require_user!
before_action :require_company_owner_or_admin!
def show
end

Expand Down
1 change: 1 addition & 0 deletions app/controllers/settings_controller.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
class SettingsController < ApplicationController

before_action :require_user!
before_action :require_company_owner_or_admin!
def show
end
Expand Down

0 comments on commit 6c83666

Please sign in to comment.