This was my error - I should have always been using canManageTopic:
isElder: equal("trust_level", 4),
canManageTopic: or("staff", "isElder"),
The test for the change that introduced this bug included:
needs.user({ admin: true });
As I understand it, needs.user returns the eviltrout user which has a bunch of elevated permissions by default.
trust_level: 4,
moderator: true,
admin: true,
Having a trust_level of 4 meant isElder was true.
Assuming my understanding of how it works is true, would it make sense for our tests to return a ‘normal’ user by default?