Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I would have used flags if roles aren't dynamic


in our case they were not only dynamic, but also managed by the administrator on an account (by our customers, not by us the software creator)


Not that hard, if there's something like a Tenant implementation.

Which would limit the scope of the "moderator" role explicitly to the tenant database.

Eg. https://martendb.io/documentation/documents/tenancy/

Fyi: The op, which i was responding too, was referring to using roles as const. Which is not dynamic :)




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: