From 71285b368c7c0486946ef25cd75c1641ae5eebb3 Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Mon, 25 Aug 2025 13:43:16 +0530 Subject: [PATCH] feat: add saml policy --- .../policies/account_saml_settings_policy.rb | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 enterprise/app/policies/account_saml_settings_policy.rb diff --git a/enterprise/app/policies/account_saml_settings_policy.rb b/enterprise/app/policies/account_saml_settings_policy.rb new file mode 100644 index 000000000..fc1418935 --- /dev/null +++ b/enterprise/app/policies/account_saml_settings_policy.rb @@ -0,0 +1,17 @@ +class AccountSamlSettingsPolicy < ApplicationPolicy + def show? + @account_user.administrator? + end + + def create? + @account_user.administrator? + end + + def update? + @account_user.administrator? + end + + def destroy? + @account_user.administrator? + end +end