Determine staff members based on flag

This replaces the old system based on email addresses, the aim is to make it more generic and thus appropriate for OSS/self-hosting

See: https://3.basecamp.com/2914079/buckets/37331921/todos/9302705265#__recording_9320051455
This commit is contained in:
Stanko K.R.
2025-11-25 14:09:31 +01:00
parent aab3a56d31
commit f64a49dcc0
5 changed files with 7 additions and 13 deletions
-4
View File
@@ -18,10 +18,6 @@ class Identity < ApplicationRecord
end
end
def staff?
email_address.ends_with?("@37signals.com") || email_address.ends_with?("@basecamp.com")
end
private
def deactivate_users
users.find_each(&:deactivate)