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
-6
View File
@@ -13,12 +13,6 @@ class IdentityTest < ActiveSupport::TestCase
end
end
test "staff?" do
assert Identity.new(email_address: "test@37signals.com").staff?
assert Identity.new(email_address: "test@basecamp.com").staff?
assert_not Identity.new(email_address: "test@example.com").staff?
end
test "join" do
identity = identities(:david)
account = accounts(:initech)