diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-01-18 03:07:23 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-01-18 03:07:23 +0300 |
commit | 196f676f0e538e12501bc0ade8dd064c509230ba (patch) | |
tree | 024b06a803422eccad6a756ecf5d2357ed7ef0ba /app/policies/users | |
parent | 97db9c4644d04ca42b65240f218f803529ad5cf2 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/policies/users')
-rw-r--r-- | app/policies/users/namespace_commit_email_policy.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/policies/users/namespace_commit_email_policy.rb b/app/policies/users/namespace_commit_email_policy.rb new file mode 100644 index 00000000000..849ebd04688 --- /dev/null +++ b/app/policies/users/namespace_commit_email_policy.rb @@ -0,0 +1,7 @@ +# frozen_string_literal: true + +module Users + class NamespaceCommitEmailPolicy < BasePolicy + delegate { @subject.user } + end +end |